mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 01:44:26 -05:00
build: remove per-crate 'treat_warnings_as_errors' gn flag
This commit is contained in:
parent
31aa7c1a5d
commit
e0c1ed96e2
1 changed files with 1 additions and 6 deletions
|
@ -69,7 +69,6 @@ template("_rust_crate") {
|
||||||
"libs",
|
"libs",
|
||||||
"source_root",
|
"source_root",
|
||||||
"testonly",
|
"testonly",
|
||||||
"treat_warnings_as_errors",
|
|
||||||
])
|
])
|
||||||
|
|
||||||
if (!defined(crate_name)) {
|
if (!defined(crate_name)) {
|
||||||
|
@ -90,10 +89,6 @@ template("_rust_crate") {
|
||||||
if (!defined(libs)) {
|
if (!defined(libs)) {
|
||||||
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)) {
|
if (defined(crate_version)) {
|
||||||
# In our build setup, all crates are built in the same directory. To avoid
|
# In our build setup, all crates are built in the same directory. To avoid
|
||||||
|
@ -282,7 +277,7 @@ template("_rust_crate") {
|
||||||
if (is_test) {
|
if (is_test) {
|
||||||
args += [ "--test" ]
|
args += [ "--test" ]
|
||||||
}
|
}
|
||||||
if (treat_warnings_as_errors) {
|
if (rust_treat_warnings_as_errors) {
|
||||||
args += [ "-Dwarnings" ]
|
args += [ "-Dwarnings" ]
|
||||||
}
|
}
|
||||||
if (defined(invoker.args)) {
|
if (defined(invoker.args)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue