mirror of
https://gitee.com/openharmony/third_party_rust_cxx
synced 2024-11-23 07:10:29 +00:00
Move fallback to scratch crate's out dir
This commit is contained in:
parent
a8beeef131
commit
66ebdd1d1f
1
BUCK
1
BUCK
@ -48,7 +48,6 @@ rust_library(
|
||||
rust_library(
|
||||
name = "build",
|
||||
srcs = glob(["gen/build/src/**"]),
|
||||
env = {"OUT_DIR": ""},
|
||||
visibility = ["PUBLIC"],
|
||||
deps = [
|
||||
"//third-party:cc",
|
||||
|
1
BUILD
1
BUILD
@ -54,7 +54,6 @@ rust_library(
|
||||
name = "build",
|
||||
srcs = glob(["gen/build/src/**/*.rs"]),
|
||||
data = ["gen/build/src/gen/include/cxx.h"],
|
||||
rustc_env = {"OUT_DIR": ""},
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//third-party:cc",
|
||||
|
@ -142,8 +142,7 @@ impl Project {
|
||||
|
||||
let shared_dir = match target_dir {
|
||||
TargetDir::Path(target_dir) => target_dir.join("cxxbridge"),
|
||||
// Use cxx-build's OUT_DIR.
|
||||
TargetDir::Unknown => PathBuf::from(env!("OUT_DIR")),
|
||||
TargetDir::Unknown => scratch::path("cxxbridge"),
|
||||
};
|
||||
|
||||
Ok(Project {
|
||||
|
Loading…
Reference in New Issue
Block a user