This commit is contained in:
Alexander David Frick 2022-02-25 07:19:10 -06:00 committed by GitHub
parent ee4e68e550
commit f359435495
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -828,6 +828,11 @@ config("compiler") {
# To make Rust .d files compatible with ninja
"-Z",
"dep-info-omit-d-target",
# If a macro panics during compilation, show which macro and where it is
# defined.
"-Z",
"macro-backtrace",
]
if (rust_abi_target != "") {
rustflags += [ "--target=$rust_abi_target" ]
@ -1548,6 +1553,13 @@ config("default_warnings") {
if (enable_wmax_tokens) {
cflags += [ "-Wmax-tokens" ]
}
if (llvm_force_head_revision) {
cflags += [
# TODO(https://crbug.com/1300731) Clean up and enable.
"-Wno-unqualified-std-cast-call",
]
}
}
}
}