mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[build] Make clang-cl targeting ia32 to be goma-compatible.
Stack-alignment flags are not supported by clang-cl, warning messages produced by clang-cl throw off gomas compiler version detection. Change-Id: I259ed57e72f6c26eb1f01ac2c6dd49ec2e90978c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/157100 Reviewed-by: Ryan Macnak <rmacnak@google.com> Commit-Queue: Alexander Aprelev <aam@google.com>
This commit is contained in:
parent
ebd5b622ba
commit
ea43e6e267
|
@ -377,7 +377,7 @@ config("compiler") {
|
||||||
# configs -= [ "//build/config/compiler:clang_stackrealign" ]
|
# configs -= [ "//build/config/compiler:clang_stackrealign" ]
|
||||||
# See https://crbug.com/556393 for details of where it must be avoided.
|
# See https://crbug.com/556393 for details of where it must be avoided.
|
||||||
config("clang_stackrealign") {
|
config("clang_stackrealign") {
|
||||||
if (is_clang && current_cpu == "x86" && !is_nacl) {
|
if (is_clang && current_cpu == "x86" && !is_nacl && !is_win) {
|
||||||
cflags = [
|
cflags = [
|
||||||
# Align the stack on 16-byte boundaries, http://crbug.com/418554.
|
# Align the stack on 16-byte boundaries, http://crbug.com/418554.
|
||||||
"-mstack-alignment=16",
|
"-mstack-alignment=16",
|
||||||
|
@ -516,14 +516,14 @@ if (is_win) {
|
||||||
|
|
||||||
if (is_clang) {
|
if (is_clang) {
|
||||||
default_warning_flags += [
|
default_warning_flags += [
|
||||||
"-Wno-deprecated-declarations", # crashpad
|
"-Wno-deprecated-declarations", # crashpad
|
||||||
"-Wno-ignored-pragma-optimize", # icu, double-conversion
|
"-Wno-ignored-pragma-optimize", # icu, double-conversion
|
||||||
"-Wno-implicit-int-float-conversion", # icu
|
"-Wno-implicit-int-float-conversion", # icu
|
||||||
"-Wno-macro-redefined",
|
"-Wno-macro-redefined",
|
||||||
"-Wno-microsoft-cast",
|
"-Wno-microsoft-cast",
|
||||||
"-Wno-microsoft-unqualified-friend",
|
"-Wno-microsoft-unqualified-friend",
|
||||||
"-Wno-unknown-argument", # icu
|
"-Wno-unknown-argument", # icu
|
||||||
"-Wno-unused-value", # crashpad
|
"-Wno-unused-value", # crashpad
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
default_warning_flags += [
|
default_warning_flags += [
|
||||||
|
|
Loading…
Reference in a new issue