Remove link-cplusplus dependency from non-Cargo builds

This commit is contained in:
David Tolnay 2020-08-30 21:03:38 -07:00
parent d150c13e8a
commit 585a9fe8d4
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
6 changed files with 3 additions and 17 deletions

1
BUCK
View File

@ -6,7 +6,6 @@ rust_library(
deps = [
":core",
":macro",
"//third-party:link-cplusplus",
],
)

5
BUILD
View File

@ -7,10 +7,7 @@ rust_library(
":cxxbridge-macro",
],
visibility = ["//visibility:public"],
deps = [
":core-lib",
"//third-party:link-cplusplus",
],
deps = [":core-lib"],
)
rust_binary(

View File

@ -7,4 +7,5 @@ fn main() {
.compile("cxxbridge03");
println!("cargo:rerun-if-changed=src/cxx.cc");
println!("cargo:rerun-if-changed=include/cxx.h");
println!("cargo:rustc-cfg=built_with_cargo");
}

View File

@ -368,6 +368,7 @@
clippy::useless_let_if_seq
)]
#[cfg(built_with_cargo)]
extern crate link_cplusplus;
#[macro_use]

6
third-party/BUCK vendored
View File

@ -38,12 +38,6 @@ rust_library(
srcs = glob(["vendor/lazy_static-1.4.0/src/**"]),
)
rust_library(
name = "link-cplusplus",
srcs = glob(["vendor/link-cplusplus-1.0.2/src/**"]),
visibility = ["PUBLIC"],
)
rust_library(
name = "proc-macro2",
srcs = glob(["vendor/proc-macro2-1.0.19/src/**"]),

6
third-party/BUILD vendored
View File

@ -43,12 +43,6 @@ rust_library(
srcs = glob(["vendor/lazy_static-1.4.0/src/**"]),
)
rust_library(
name = "link-cplusplus",
srcs = glob(["vendor/link-cplusplus-1.0.2/src/**"]),
visibility = ["//visibility:public"],
)
rust_library(
name = "proc-macro2",
srcs = glob(["vendor/proc-macro2-1.0.19/src/**"]),