summaryrefslogtreecommitdiff
path: root/build_extra/rust/rust.gni
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2019-08-22 13:10:52 -0700
committerBert Belder <bertbelder@gmail.com>2019-08-22 14:13:01 -0700
commite0c1ed96e22dc9a94cb5457c8b3eb2f2cd1af831 (patch)
tree6fb4e7d57c5a8096f506c2cf4c1e36ed8699d70f /build_extra/rust/rust.gni
parent31aa7c1a5d8a27c720b6255dc3eceda3707b1826 (diff)
build: remove per-crate 'treat_warnings_as_errors' gn flag
Diffstat (limited to 'build_extra/rust/rust.gni')
-rw-r--r--build_extra/rust/rust.gni7
1 files changed, 1 insertions, 6 deletions
diff --git a/build_extra/rust/rust.gni b/build_extra/rust/rust.gni
index ba8cc781f..7f67d2068 100644
--- a/build_extra/rust/rust.gni
+++ b/build_extra/rust/rust.gni
@@ -69,7 +69,6 @@ template("_rust_crate") {
"libs",
"source_root",
"testonly",
- "treat_warnings_as_errors",
])
if (!defined(crate_name)) {
@@ -90,10 +89,6 @@ template("_rust_crate") {
if (!defined(libs)) {
libs = []
}
- if (!defined(treat_warnings_as_errors)) {
- # Use global setting if not explicitly specified for this target.
- treat_warnings_as_errors = rust_treat_warnings_as_errors
- }
if (defined(crate_version)) {
# In our build setup, all crates are built in the same directory. To avoid
@@ -282,7 +277,7 @@ template("_rust_crate") {
if (is_test) {
args += [ "--test" ]
}
- if (treat_warnings_as_errors) {
+ if (rust_treat_warnings_as_errors) {
args += [ "-Dwarnings" ]
}
if (defined(invoker.args)) {