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 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 if (is_posix) { | 9 if (is_posix) { |
10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 # structured exceptions (only C++ ones). | 51 # structured exceptions (only C++ ones). |
52 ] | 52 ] |
53 } | 53 } |
54 } else { | 54 } else { |
55 # Common GCC compiler flags setup. | 55 # Common GCC compiler flags setup. |
56 # -------------------------------- | 56 # -------------------------------- |
57 cflags += [ | 57 cflags += [ |
58 "-fno-strict-aliasing", # See http://crbug.com/32204 | 58 "-fno-strict-aliasing", # See http://crbug.com/32204 |
59 ] | 59 ] |
60 cflags_cc += [ | 60 cflags_cc += [ |
61 "-fno-exceptions", | |
62 "-fno-threadsafe-statics", | 61 "-fno-threadsafe-statics", |
63 # Not exporting C++ inline functions can generally be applied anywhere | 62 # Not exporting C++ inline functions can generally be applied anywhere |
64 # so we do so here. Normal function visibility is controlled by | 63 # so we do so here. Normal function visibility is controlled by |
65 # //build/config/gcc:symbol_visibility_hidden. | 64 # //build/config/gcc:symbol_visibility_hidden. |
66 "-fvisibility-inlines-hidden", | 65 "-fvisibility-inlines-hidden", |
67 ] | 66 ] |
68 | 67 |
69 # Stack protection. | 68 # Stack protection. |
70 if (is_mac) { | 69 if (is_mac) { |
71 cflags += [ "-fstack-protector-all" ] | 70 cflags += [ "-fstack-protector-all" ] |
(...skipping 721 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 } else { | 792 } else { |
794 cflags = [ "-g1" ] | 793 cflags = [ "-g1" ] |
795 } | 794 } |
796 } | 795 } |
797 | 796 |
798 config("no_symbols") { | 797 config("no_symbols") { |
799 if (!is_win) { | 798 if (!is_win) { |
800 cflags = [ "-g0" ] | 799 cflags = [ "-g0" ] |
801 } | 800 } |
802 } | 801 } |
OLD | NEW |