Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1036)

Unified Diff: build/config/compiler/BUILD.gn

Issue 1368223002: [GN]: BUILD file housecleaning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/android/BUILD.gn ('k') | build/config/mac/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 53ca6cb6e8ce3eae33d4c9497d0257a1c49c51b1..67505a030c84a23eebd482ab295ef06739ccaa9e 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -93,6 +93,7 @@ config("default_include_dirs") {
# where stuff should go. Put warning related stuff in the "warnings" config.
config("compiler") {
+ asmflags = []
cflags = []
cflags_c = []
cflags_cc = []
@@ -453,11 +454,20 @@ config("compiler") {
# Pass the same C/C++ flags to the objective C/C++ compiler.
cflags_objc += cflags_c
cflags_objcc += cflags_cc
+
+ # Assign any flags set for the C compiler to asmflags so that they are sent
+ # to the assembler. The Windows assembler takes different types of flags
+ # so only do so for posix platforms.
+ if (is_posix) {
+ asmflags += cflags
+ asmflags += cflags_c
+ }
}
config("compiler_arm_fpu") {
if (current_cpu == "arm" && !is_ios && !is_nacl) {
cflags = [ "-mfpu=$arm_fpu" ]
+ asmflags = cflags
}
}
@@ -806,6 +816,7 @@ config("no_chromium_code") {
"-Wno-deprecated",
]
}
+
cflags += default_warning_flags
cflags_cc += default_warning_flags_cc
}
@@ -1083,6 +1094,7 @@ config("symbols") {
if (use_debug_fission) {
cflags += [ "-gsplit-dwarf" ]
}
+ asmflags = cflags
ldflags = []
}
}
@@ -1105,6 +1117,7 @@ config("minimal_symbols") {
if (use_debug_fission) {
cflags += [ "-gsplit-dwarf" ]
}
+ asmflags = cflags
ldflags = []
}
}
@@ -1113,6 +1126,7 @@ config("minimal_symbols") {
config("no_symbols") {
if (!is_win) {
cflags = [ "-g0" ]
+ asmflags = cflags
}
}
« no previous file with comments | « build/config/android/BUILD.gn ('k') | build/config/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698