Skip to content

Commit 03587bd

Browse files
committed
Warn when pauthtest is used
`cc-rs` only builds static libraries, while `pauthtest` requires shared objects.
1 parent 5e5be10 commit 03587bd

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,12 @@ impl Build {
15981598
self.assemble(lib_name, &dst.join(gnu_lib_name), &objects)?;
15991599

16001600
let target = self.get_target()?;
1601+
if target.abi == "pauthtest" {
1602+
self.cargo_output.print_warning(
1603+
&"cc-rs shoutl not be used with `pauthtest` target: it only builds \
1604+
static libraries, while `pauthtest` requires shared objects.",
1605+
);
1606+
}
16011607
if target.env == "msvc" {
16021608
let compiler = self.get_base_compiler()?;
16031609
let atlmfc_lib = compiler

0 commit comments

Comments
 (0)