0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2025-01-11 16:42:32 -05:00
denoland-rusty-v8/build.rs
2019-10-18 16:52:12 -07:00

17 lines
365 B
Rust

use cc;
fn main() {
cc::Build::new()
.cpp(true)
.flag("-std:c++17")
.debug(true)
.file("src/lib.cpp")
.compile("v8-bindings");
println!("cargo:rustc-link-lib=static=v8_monolith");
println!("cargo:rustc-link-search=goog/v8/out/x64.release/obj");
if cfg!(target_os = "windows") {
println!("cargo:rustc-link-lib=dylib=winmm");
}
}