OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
7 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
9 } | 9 } |
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
655 "-Wsign-compare", | 655 "-Wsign-compare", |
656 ] | 656 ] |
657 | 657 |
658 # In Chromium code, we define __STDC_foo_MACROS in order to get the | 658 # In Chromium code, we define __STDC_foo_MACROS in order to get the |
659 # C99 macros on Mac and Linux. | 659 # C99 macros on Mac and Linux. |
660 defines = [ | 660 defines = [ |
661 "__STDC_CONSTANT_MACROS", | 661 "__STDC_CONSTANT_MACROS", |
662 "__STDC_FORMAT_MACROS", | 662 "__STDC_FORMAT_MACROS", |
663 ] | 663 ] |
664 | 664 |
665 if (using_sanitizer) { | 665 if (!using_sanitizer && (!is_linux || !is_clang || is_official_build)) { |
Dirk Pranke
2015/05/19 19:53:30
I can see this matches the logic in GYP, but tryin
Sam McNally
2015/05/20 01:40:29
My understanding from the comments is that we want
Nico
2015/05/21 19:19:55
Yes, this is correct.
| |
666 # _FORTIFY_SOURCE isn't really supported by Clang now, see | 666 # _FORTIFY_SOURCE isn't really supported by Clang now, see |
667 # http://llvm.org/bugs/show_bug.cgi?id=16821. | 667 # http://llvm.org/bugs/show_bug.cgi?id=16821. |
668 # It seems to work fine with Ubuntu 12 headers though, so use it in | 668 # It seems to work fine with Ubuntu 12 headers though, so use it in |
669 # official builds. | 669 # official builds. |
670 # | 670 # |
671 # Non-chromium code is not guaranteed to compile cleanly with | 671 # Non-chromium code is not guaranteed to compile cleanly with |
672 # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are | 672 # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are |
673 # disabled, so only do that for Release build. | 673 # disabled, so only do that for Release build. |
674 defines += [ "_FORTIFY_SOURCE=2" ] | 674 defines += [ "_FORTIFY_SOURCE=2" ] |
675 } | 675 } |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1124 cflags += [ "-gsplit-dwarf" ] | 1124 cflags += [ "-gsplit-dwarf" ] |
1125 } | 1125 } |
1126 } | 1126 } |
1127 } | 1127 } |
1128 | 1128 |
1129 config("no_symbols") { | 1129 config("no_symbols") { |
1130 if (!is_win) { | 1130 if (!is_win) { |
1131 cflags = [ "-g0" ] | 1131 cflags = [ "-g0" ] |
1132 } | 1132 } |
1133 } | 1133 } |
OLD | NEW |