| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 "/Gy", # Enable function-level linking. | 73 "/Gy", # Enable function-level linking. |
| 74 "/GS", # Enable buffer security checking. | 74 "/GS", # Enable buffer security checking. |
| 75 "/FS", # Preserve previous PDB behavior. | 75 "/FS", # Preserve previous PDB behavior. |
| 76 ] | 76 ] |
| 77 if (is_component_build) { | 77 if (is_component_build) { |
| 78 cflags += [ | 78 cflags += [ |
| 79 "/EHsc", # Assume C functions can't throw exceptions and don't catch | 79 "/EHsc", # Assume C functions can't throw exceptions and don't catch |
| 80 # structured exceptions (only C++ ones). | 80 # structured exceptions (only C++ ones). |
| 81 ] | 81 ] |
| 82 } | 82 } |
| 83 if (using_sanitizer) { |
| 84 # Avoid error. |
| 85 } |
| 83 } else { | 86 } else { |
| 84 # Common GCC compiler flags setup. | 87 # Common GCC compiler flags setup. |
| 85 # -------------------------------- | 88 # -------------------------------- |
| 86 cflags += [ | 89 cflags += [ |
| 87 "-fno-strict-aliasing", # See http://crbug.com/32204 | 90 "-fno-strict-aliasing", # See http://crbug.com/32204 |
| 88 ] | 91 ] |
| 89 cflags_cc += [ | 92 cflags_cc += [ |
| 90 "-fno-threadsafe-statics", | 93 "-fno-threadsafe-statics", |
| 91 # Not exporting C++ inline functions can generally be applied anywhere | 94 # Not exporting C++ inline functions can generally be applied anywhere |
| 92 # so we do so here. Normal function visibility is controlled by | 95 # so we do so here. Normal function visibility is controlled by |
| (...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 cflags += [ "-gsplit-dwarf" ] | 957 cflags += [ "-gsplit-dwarf" ] |
| 955 } | 958 } |
| 956 } | 959 } |
| 957 } | 960 } |
| 958 | 961 |
| 959 config("no_symbols") { | 962 config("no_symbols") { |
| 960 if (!is_win) { | 963 if (!is_win) { |
| 961 cflags = [ "-g0" ] | 964 cflags = [ "-g0" ] |
| 962 } | 965 } |
| 963 } | 966 } |
| OLD | NEW |