|
@ -70,7 +70,9 @@ fn main() { |
|
|
println!("cargo:rustc-link-search={}", out.display()); |
|
|
println!("cargo:rustc-link-search={}", out.display()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// This tests whether we can build a library but not link it to the main crate.
|
|
|
// This tests whether we can build a library but not link it to the main
|
|
|
// The test module will do its own linking.
|
|
|
// crate. The test module will do its own linking.
|
|
|
gcc::Config::new().cargo_metadata(false).file("src/opt_linkage.c").compile("libOptLinkage.a"); |
|
|
gcc::Config::new().cargo_metadata(false) |
|
|
|
|
|
.file("src/opt_linkage.c") |
|
|
|
|
|
.compile("libOptLinkage.a"); |
|
|
} |
|
|
} |
|
|