|
Lines 1-6
Link Here
|
| 1 |
--- src/3rdparty/chromium/build/config/compiler/BUILD.gn.orig 2017-01-26 00:49:07 UTC |
1 |
--- src/3rdparty/chromium/build/config/compiler/BUILD.gn.orig 2018-01-15 11:39:43 UTC |
| 2 |
+++ src/3rdparty/chromium/build/config/compiler/BUILD.gn |
2 |
+++ src/3rdparty/chromium/build/config/compiler/BUILD.gn |
| 3 |
@@ -150,7 +150,7 @@ config("compiler") { |
3 |
@@ -156,7 +156,7 @@ config("compiler") { |
| 4 |
configs += [ "//build/config/win:compiler" ] |
4 |
configs += [ "//build/config/win:compiler" ] |
| 5 |
} else if (is_android) { |
5 |
} else if (is_android) { |
| 6 |
configs += [ "//build/config/android:compiler" ] |
6 |
configs += [ "//build/config/android:compiler" ] |
|
Lines 9-15
Link Here
|
| 9 |
configs += [ "//build/config/linux:compiler" ] |
9 |
configs += [ "//build/config/linux:compiler" ] |
| 10 |
} else if (is_nacl) { |
10 |
} else if (is_nacl) { |
| 11 |
configs += [ "//build/config/nacl:compiler" ] |
11 |
configs += [ "//build/config/nacl:compiler" ] |
| 12 |
@@ -277,7 +277,7 @@ config("compiler") { |
12 |
@@ -290,7 +290,7 @@ config("compiler") { |
| 13 |
|
13 |
|
| 14 |
# Linux/Android common flags setup. |
14 |
# Linux/Android common flags setup. |
| 15 |
# --------------------------------- |
15 |
# --------------------------------- |
|
Lines 18-24
Link Here
|
| 18 |
cflags += [ |
18 |
cflags += [ |
| 19 |
"-fPIC", |
19 |
"-fPIC", |
| 20 |
"-pipe", # Use pipes for communicating between sub-processes. Faster. |
20 |
"-pipe", # Use pipes for communicating between sub-processes. Faster. |
| 21 |
@@ -401,14 +401,14 @@ config("compiler") { |
21 |
@@ -414,14 +414,14 @@ config("compiler") { |
| 22 |
# clang-cl (used if is_win) doesn't expose this flag. |
22 |
# clang-cl (used if is_win) doesn't expose this flag. |
| 23 |
# Currently disabled for nacl since its toolchain lacks this flag (too old). |
23 |
# Currently disabled for nacl since its toolchain lacks this flag (too old). |
| 24 |
# TODO(zforman): Once nacl's toolchain is updated, remove check. |
24 |
# TODO(zforman): Once nacl's toolchain is updated, remove check. |
|
Lines 35-41
Link Here
|
| 35 |
# gnu++11 instead of c++11 is needed because some code uses typeof() (a |
35 |
# gnu++11 instead of c++11 is needed because some code uses typeof() (a |
| 36 |
# GNU extension). |
36 |
# GNU extension). |
| 37 |
# TODO(thakis): Eventually switch this to c++11 instead, |
37 |
# TODO(thakis): Eventually switch this to c++11 instead, |
| 38 |
@@ -458,7 +458,7 @@ config("compiler") { |
38 |
@@ -475,7 +475,7 @@ config("compiler") { |
| 39 |
] |
39 |
] |
| 40 |
|
40 |
|
| 41 |
# Apply a lower LTO optimization level as the default is too slow. |
41 |
# Apply a lower LTO optimization level as the default is too slow. |
|
Lines 44-50
Link Here
|
| 44 |
if (use_lld) { |
44 |
if (use_lld) { |
| 45 |
ldflags += [ "-Wl,--lto-O1" ] |
45 |
ldflags += [ "-Wl,--lto-O1" ] |
| 46 |
} else { |
46 |
} else { |
| 47 |
@@ -478,7 +478,7 @@ config("compiler") { |
47 |
@@ -495,7 +495,7 @@ config("compiler") { |
| 48 |
# targeting ARM, without this flag, LTO produces a .text section that is |
48 |
# targeting ARM, without this flag, LTO produces a .text section that is |
| 49 |
# larger than the maximum call displacement, preventing the linker from |
49 |
# larger than the maximum call displacement, preventing the linker from |
| 50 |
# relocating calls (http://llvm.org/PR22999). |
50 |
# relocating calls (http://llvm.org/PR22999). |
|
Lines 53-59
Link Here
|
| 53 |
ldflags += [ "-Wl,-plugin-opt,-function-sections" ] |
53 |
ldflags += [ "-Wl,-plugin-opt,-function-sections" ] |
| 54 |
} |
54 |
} |
| 55 |
} |
55 |
} |
| 56 |
@@ -742,7 +742,7 @@ config("compiler_codegen") { |
56 |
@@ -541,11 +541,11 @@ config("compiler_cpu_abi") { |
|
|
57 |
] |
| 58 |
} |
| 59 |
} else if (current_cpu == "arm") { |
| 60 |
- if (is_clang && !is_android && !is_nacl) { |
| 61 |
+ if (is_clang && !is_android && !is_nacl && !is_bsd) { |
| 62 |
cflags += [ "--target=arm-linux-gnueabihf" ] |
| 63 |
ldflags += [ "--target=arm-linux-gnueabihf" ] |
| 64 |
} |
| 65 |
- if (!is_nacl) { |
| 66 |
+ if (!is_nacl && !is_bsd) { |
| 67 |
cflags += [ |
| 68 |
"-march=$arm_arch", |
| 69 |
"-mfloat-abi=$arm_float_abi", |
| 70 |
@@ -555,7 +555,7 @@ config("compiler_cpu_abi") { |
| 71 |
cflags += [ "-mtune=$arm_tune" ] |
| 72 |
} |
| 73 |
} else if (current_cpu == "arm64") { |
| 74 |
- if (is_clang && !is_android && !is_nacl) { |
| 75 |
+ if (is_clang && !is_android && !is_nacl && !is_bsd) { |
| 76 |
cflags += [ "--target=aarch64-linux-gnu" ] |
| 77 |
ldflags += [ "--target=aarch64-linux-gnu" ] |
| 78 |
} |
| 79 |
@@ -758,7 +758,7 @@ config("compiler_codegen") { |
| 57 |
# configs -= [ "//build/config/compiler:clang_stackrealign" ] |
80 |
# configs -= [ "//build/config/compiler:clang_stackrealign" ] |
| 58 |
# See https://crbug.com/556393 for details of where it must be avoided. |
81 |
# See https://crbug.com/556393 for details of where it must be avoided. |
| 59 |
config("clang_stackrealign") { |
82 |
config("clang_stackrealign") { |
|
Lines 62-68
Link Here
|
| 62 |
cflags = [ |
85 |
cflags = [ |
| 63 |
# Align the stack on 16-byte boundaries, http://crbug.com/418554. |
86 |
# Align the stack on 16-byte boundaries, http://crbug.com/418554. |
| 64 |
"-mstack-alignment=16", |
87 |
"-mstack-alignment=16", |
| 65 |
@@ -788,7 +788,7 @@ config("runtime_library") { |
88 |
@@ -804,7 +804,7 @@ config("runtime_library") { |
| 66 |
# smaller. |
89 |
# smaller. |
| 67 |
if (is_win) { |
90 |
if (is_win) { |
| 68 |
configs += [ "//build/config/win:runtime_library" ] |
91 |
configs += [ "//build/config/win:runtime_library" ] |
|
Lines 71-77
Link Here
|
| 71 |
configs += [ "//build/config/linux:runtime_library" ] |
94 |
configs += [ "//build/config/linux:runtime_library" ] |
| 72 |
} else if (is_ios) { |
95 |
} else if (is_ios) { |
| 73 |
configs += [ "//build/config/ios:runtime_library" ] |
96 |
configs += [ "//build/config/ios:runtime_library" ] |
| 74 |
@@ -1038,7 +1038,7 @@ config("default_warnings") { |
97 |
@@ -1054,7 +1054,7 @@ config("default_warnings") { |
| 75 |
"-Wno-nonportable-include-path", |
98 |
"-Wno-nonportable-include-path", |
| 76 |
|
99 |
|
| 77 |
# TODO(hans): https://crbug.com/637306 |
100 |
# TODO(hans): https://crbug.com/637306 |
|
Lines 80-86
Link Here
|
| 80 |
] |
103 |
] |
| 81 |
} |
104 |
} |
| 82 |
} |
105 |
} |
| 83 |
@@ -1070,7 +1070,7 @@ config("chromium_code") { |
106 |
@@ -1086,7 +1086,7 @@ config("chromium_code") { |
| 84 |
] |
107 |
] |
| 85 |
|
108 |
|
| 86 |
if (!is_debug && !using_sanitizer && |
109 |
if (!is_debug && !using_sanitizer && |
|
Lines 89-95
Link Here
|
| 89 |
# _FORTIFY_SOURCE isn't really supported by Clang now, see |
112 |
# _FORTIFY_SOURCE isn't really supported by Clang now, see |
| 90 |
# http://llvm.org/bugs/show_bug.cgi?id=16821. |
113 |
# http://llvm.org/bugs/show_bug.cgi?id=16821. |
| 91 |
# It seems to work fine with Ubuntu 12 headers though, so use it in |
114 |
# It seems to work fine with Ubuntu 12 headers though, so use it in |
| 92 |
@@ -1128,7 +1128,7 @@ config("no_chromium_code") { |
115 |
@@ -1144,7 +1144,7 @@ config("no_chromium_code") { |
| 93 |
] |
116 |
] |
| 94 |
} |
117 |
} |
| 95 |
|
118 |
|