Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index 3fb6c90215c53d3ffe856b8d895759a199aeb58a..0419926d127955f5dd7b7b0ff245b8d90e46effc 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -303,11 +303,17 @@ |
# --------------------------------- |
if (is_linux || is_android) { |
if (use_pic) { |
- cflags += [ "-fPIC" ] |
- ldflags += [ "-fPIC" ] |
- } |
- |
- cflags += [ "-pipe" ] # Use pipes for communicating between sub-processes. Faster. |
+ cflags += [ |
+ "-fPIC", |
+ ] |
+ ldflags += [ |
+ "-fPIC", |
+ ] |
+ } |
+ |
+ cflags += [ |
+ "-pipe", # Use pipes for communicating between sub-processes. Faster. |
+ ] |
ldflags += [ |
"-Wl,-z,noexecstack", |
@@ -899,10 +905,6 @@ |
# This is necessary for the shared library build. |
"/wd4251", |
- # C4312 is a VS 2015 64-bit warning for integer to larger pointer. |
- # TODO(brucedawson): fix warnings, crbug.com/554200 |
- "/wd4312", |
- |
# C4351: new behavior: elements of array 'array' will be default |
# initialized |
# This is a silly "warning" that basically just alerts you that the |
@@ -965,10 +967,10 @@ |
"/wd4459", |
] |
- cflags_cc += [ |
- # Allow "noexcept" annotations even though we compile with exceptions |
- # disabled. |
- "/wd4577", |
+ cflags += [ |
+ # C4312 is a VS 2015 64-bit warning for integer to larger pointer. |
+ # TODO(brucedawson): fix warnings, crbug.com/554200 |
+ "/wd4312", |
] |
if (current_cpu == "x86") { |