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 c04d286 commit 6136169Copy full SHA for 6136169
third_party/cxx/blobstore/build.rs
@@ -1,9 +1,16 @@
1
fn main() {
2
+ let src_dir = {
3
+ let mut target_dir =
4
+ std::env::var_os("CARGO_TARGET_DIR").unwrap_or("../../../target".into());
5
+ target_dir.push("/cxxbridge/demo/src");
6
+ target_dir
7
+ };
8
+
9
cxx_build::bridge("src/main.rs")
10
.file("src/blobstore.cc")
11
.flag_if_supported("-std=c++14")
12
.include(".")
- .include("../../../target/cxxbridge/demo/src")
13
+ .include(src_dir)
14
.compile("cxxbridge-demo");
15
16
println!("cargo:rerun-if-changed=src/main.rs");
0 commit comments