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 957 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 "-Wsign-compare", | 968 "-Wsign-compare", |
969 ] | 969 ] |
970 | 970 |
971 # In Chromium code, we define __STDC_foo_MACROS in order to get the | 971 # In Chromium code, we define __STDC_foo_MACROS in order to get the |
972 # C99 macros on Mac and Linux. | 972 # C99 macros on Mac and Linux. |
973 defines = [ | 973 defines = [ |
974 "__STDC_CONSTANT_MACROS", | 974 "__STDC_CONSTANT_MACROS", |
975 "__STDC_FORMAT_MACROS", | 975 "__STDC_FORMAT_MACROS", |
976 ] | 976 ] |
977 | 977 |
978 if (!using_sanitizer && (!is_linux || !is_clang || is_official_build)) { | 978 if (!is_debug && !using_sanitizer && |
| 979 (!is_linux || !is_clang || is_official_build)) { |
979 # _FORTIFY_SOURCE isn't really supported by Clang now, see | 980 # _FORTIFY_SOURCE isn't really supported by Clang now, see |
980 # http://llvm.org/bugs/show_bug.cgi?id=16821. | 981 # http://llvm.org/bugs/show_bug.cgi?id=16821. |
981 # It seems to work fine with Ubuntu 12 headers though, so use it in | 982 # It seems to work fine with Ubuntu 12 headers though, so use it in |
982 # official builds. | 983 # official builds. |
983 # | 984 # |
984 # Non-chromium code is not guaranteed to compile cleanly with | 985 # Non-chromium code is not guaranteed to compile cleanly with |
985 # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are | 986 # _FORTIFY_SOURCE. Also, fortified build may fail when optimizations are |
986 # disabled, so only do that for Release build. | 987 # disabled, so only do that for Release build. |
987 defines += [ "_FORTIFY_SOURCE=2" ] | 988 defines += [ "_FORTIFY_SOURCE=2" ] |
988 } | 989 } |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1253 cflags += [ "-gsplit-dwarf" ] | 1254 cflags += [ "-gsplit-dwarf" ] |
1254 } | 1255 } |
1255 } | 1256 } |
1256 } | 1257 } |
1257 | 1258 |
1258 config("no_symbols") { | 1259 config("no_symbols") { |
1259 if (!is_win) { | 1260 if (!is_win) { |
1260 cflags = [ "-g0" ] | 1261 cflags = [ "-g0" ] |
1261 } | 1262 } |
1262 } | 1263 } |
OLD | NEW |