summaryrefslogtreecommitdiff
path: root/build/rust/BUILD.gn
diff options
context:
space:
mode:
authorCronet Mainline Eng <cronet-mainline-eng+copybara@google.com>2024-01-24 19:13:11 +0000
committerChidera Olibie <colibie@google.com>2024-01-24 19:19:32 +0000
commitabce8a39488511c10b95ac52d1a3fdd2e886da83 (patch)
tree163cb3522692e4ac343079f490b3c29c97da116e /build/rust/BUILD.gn
parentd14faf319d3e431654f149930db41f3e0adf2d15 (diff)
downloadcronet-abce8a39488511c10b95ac52d1a3fdd2e886da83.tar.gz
Import Cronet version 121.0.6167.71
FolderOrigin-RevId: /tmp/copybara-origin/src Change-Id: Ieee3d31a0e9c404daa9a1630919e62b52ce61d1b
Diffstat (limited to 'build/rust/BUILD.gn')
-rw-r--r--build/rust/BUILD.gn15
1 files changed, 13 insertions, 2 deletions
diff --git a/build/rust/BUILD.gn b/build/rust/BUILD.gn
index 56ffdab6b..c1c13bfa2 100644
--- a/build/rust/BUILD.gn
+++ b/build/rust/BUILD.gn
@@ -23,8 +23,12 @@ if (toolchain_has_rust) {
# on the C++ side.
static_library("cxx_cppdeps") {
sources = [
- "//third_party/rust/cxx/v1/crate/include/cxx.h",
- "//third_party/rust/cxx/v1/crate/src/cxx.cc",
+ "//third_party/rust/chromium_crates_io/vendor/cxx-1.0.110/include/cxx.h",
+ "//third_party/rust/chromium_crates_io/vendor/cxx-1.0.110/src/cxx.cc",
+
+ # Our version-independent forwarding header, which we patch cxx.cc to
+ # use since we want it to use an absolute path for its include.
+ "//third_party/rust/cxx/v1/cxx.h",
]
defines = [ "RUST_CXX_NO_EXCEPTIONS" ]
@@ -88,3 +92,10 @@ config("panic_immediate_abort") {
]
}
}
+
+config("is_gtest_unittests") {
+ rustflags = [
+ "--cfg",
+ "is_gtest_unittests",
+ ]
+}