You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
486 B
19 lines
486 B
use cxx_build::CFG;
|
|
|
|
fn main() {
|
|
if cfg!(trybuild) {
|
|
return;
|
|
}
|
|
|
|
CFG.include_prefix = "tests/ffi";
|
|
let sources = vec!["lib.rs", "module.rs"];
|
|
let mut build = cxx_build::bridges(sources);
|
|
build.file("tests.cc");
|
|
build.flag_if_supported(cxxbridge_flags::STD);
|
|
build.warnings_into_errors(cfg!(deny_warnings));
|
|
if cfg!(not(target_env = "msvc")) {
|
|
build.define("CXX_TEST_INSTANTIATIONS", None);
|
|
}
|
|
build.compile("cxx-test-suite");
|
|
}
|