We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4218c95 commit 43e1cd6Copy full SHA for 43e1cd6
third_party/cxx/blobstore/build.rs
@@ -1,9 +1,13 @@
1
fn main() {
2
+ // Find target directory, either from CARGO_TARGET_DIR or in-tree if unset.
3
+ let mut src_dir = std::env::var_os("CARGO_TARGET_DIR").unwrap_or("../../../target".into());
4
+ src_dir.push("/cxxbridge/demo/src");
5
+
6
cxx_build::bridge("src/main.rs")
7
.file("src/blobstore.cc")
8
.flag_if_supported("-std=c++14")
9
.include(".")
- .include("../../../target/cxxbridge/demo/src")
10
+ .include(src_dir)
11
.compile("cxxbridge-demo");
12
13
println!("cargo:rerun-if-changed=src/main.rs");
0 commit comments