2019-04-13 22:52:15 +03:00
|
|
|
--- chromium-71.0.3578.10/build/config/compiler/BUILD.gn.build-gentoo 2018-10-17 21:13:16.000000000 +0200
|
|
|
|
+++ chromium-71.0.3578.10/build/config/compiler/BUILD.gn 2018-10-19 21:05:22.593222429 +0200
|
|
|
|
@@ -237,8 +237,6 @@
|
2018-11-11 01:39:53 +03:00
|
|
|
|
|
|
|
configs += [
|
|
|
|
# See the definitions below.
|
|
|
|
- ":clang_revision",
|
|
|
|
- ":compiler_cpu_abi",
|
|
|
|
":compiler_codegen",
|
|
|
|
]
|
|
|
|
|
2019-04-13 22:52:15 +03:00
|
|
|
@@ -502,17 +500,6 @@
|
2018-11-11 01:39:53 +03:00
|
|
|
}
|
2019-04-13 22:52:15 +03:00
|
|
|
}
|
|
|
|
|
2018-12-16 01:01:23 +03:00
|
|
|
- if (is_clang && !is_nacl && !use_xcode_clang) {
|
2018-11-11 01:39:53 +03:00
|
|
|
- cflags += [
|
|
|
|
- # TODO(hans): Remove this once Clang generates better optimized debug info
|
|
|
|
- # by default. https://crbug.com/765793
|
|
|
|
- "-Xclang",
|
|
|
|
- "-mllvm",
|
|
|
|
- "-Xclang",
|
|
|
|
- "-instcombine-lower-dbg-declare=0",
|
|
|
|
- ]
|
2019-04-13 22:52:15 +03:00
|
|
|
- }
|
|
|
|
-
|
2018-11-11 01:39:53 +03:00
|
|
|
# Print absolute paths in diagnostics. There is no precedent for doing this
|
2019-04-13 22:52:15 +03:00
|
|
|
# on Linux/Mac (GCC doesn't support it), but MSVC does this with /FC and
|
|
|
|
# Windows developers rely on it (crbug.com/636109) so only do this on Windows.
|
|
|
|
@@ -1497,11 +1484,6 @@
|
2019-02-21 00:25:57 +03:00
|
|
|
if (current_toolchain == host_toolchain || !use_xcode_clang) {
|
|
|
|
# Flags NaCl (Clang 3.7) and Xcode 9.2 (Clang clang-900.0.39.2) do not
|
|
|
|
# recognize.
|
|
|
|
- cflags += [
|
2018-11-11 01:39:53 +03:00
|
|
|
- # Ignore warnings about MSVC optimization pragmas.
|
2019-04-13 22:52:15 +03:00
|
|
|
- # TODO(thakis): Only for no_chromium_code? http://crbug.com/912662
|
2018-11-11 01:39:53 +03:00
|
|
|
- "-Wno-ignored-pragma-optimize",
|
2019-02-21 00:25:57 +03:00
|
|
|
- ]
|
|
|
|
if (is_fuchsia) {
|
|
|
|
cflags += [
|
|
|
|
# TODO(hans): https://crbug.com/890307
|
2019-04-13 22:52:15 +03:00
|
|
|
@@ -1548,22 +1530,6 @@
|
2018-11-11 01:39:53 +03:00
|
|
|
"__STDC_FORMAT_MACROS",
|
|
|
|
]
|
2019-04-13 22:52:15 +03:00
|
|
|
|
2018-11-11 01:39:53 +03:00
|
|
|
- if (!is_debug && !using_sanitizer &&
|
|
|
|
- (!is_linux || !is_clang || is_official_build) &&
|
|
|
|
- current_cpu != "s390x" && current_cpu != "s390" &&
|
|
|
|
- current_cpu != "ppc64" && current_cpu != "ppc64" &&
|
|
|
|
- current_cpu != "mips" && current_cpu != "mips64") {
|
|
|
|
- # _FORTIFY_SOURCE isn't really supported by Clang now, see
|
|
|
|
- # http://llvm.org/bugs/show_bug.cgi?id=16821.
|
|
|
|
- # It seems to work fine with Ubuntu 12 headers though, so use it in
|
|
|
|
- # official builds.
|
|
|
|
- #
|
|
|
|
- # Non-chromium code is not guaranteed to compile cleanly with
|
|
|
|
- # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are
|
|
|
|
- # disabled, so only do that for Release build.
|
|
|
|
- defines += [ "_FORTIFY_SOURCE=2" ]
|
|
|
|
- }
|
2019-04-13 22:52:15 +03:00
|
|
|
-
|
2018-12-16 01:01:23 +03:00
|
|
|
if (is_mac) {
|
2018-11-11 01:39:53 +03:00
|
|
|
cflags_objc = [ "-Wobjc-missing-property-synthesis" ]
|
2019-04-13 22:52:15 +03:00
|
|
|
cflags_objcc = [ "-Wobjc-missing-property-synthesis" ]
|