| 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 25 matching lines...) Expand all Loading... |
| 36 # In general, Windows is totally different, but all the other builds share | 36 # In general, Windows is totally different, but all the other builds share |
| 37 # some common GCC configuration. This section sets up Windows and the common | 37 # some common GCC configuration. This section sets up Windows and the common |
| 38 # GCC flags, and then we handle the other non-Windows platforms specifically | 38 # GCC flags, and then we handle the other non-Windows platforms specifically |
| 39 # below. | 39 # below. |
| 40 if (is_win) { | 40 if (is_win) { |
| 41 # Windows compiler flags setup. | 41 # Windows compiler flags setup. |
| 42 # ----------------------------- | 42 # ----------------------------- |
| 43 cflags += [ | 43 cflags += [ |
| 44 "/Gy", # Enable function-level linking. | 44 "/Gy", # Enable function-level linking. |
| 45 "/GS", # Enable buffer security checking. | 45 "/GS", # Enable buffer security checking. |
| 46 "/EHsc", # Assume C functions can't throw exceptions and don't catch | |
| 47 # structured exceptions (only C++ ones). | |
| 48 "/FS", # Preserve previous PDB behavior. | 46 "/FS", # Preserve previous PDB behavior. |
| 49 ] | 47 ] |
| 48 if (is_component_build) { |
| 49 cflags += [ |
| 50 "/EHsc", # Assume C functions can't throw exceptions and don't catch |
| 51 # structured exceptions (only C++ ones). |
| 52 ] |
| 53 } |
| 50 } else { | 54 } else { |
| 51 # Common GCC compiler flags setup. | 55 # Common GCC compiler flags setup. |
| 52 # -------------------------------- | 56 # -------------------------------- |
| 53 cflags += [ | 57 cflags += [ |
| 54 "-fno-strict-aliasing", # See http://crbug.com/32204 | 58 "-fno-strict-aliasing", # See http://crbug.com/32204 |
| 55 ] | 59 ] |
| 56 cflags_cc += [ | 60 cflags_cc += [ |
| 57 "-fno-exceptions", | 61 "-fno-exceptions", |
| 58 "-fno-threadsafe-statics", | 62 "-fno-threadsafe-statics", |
| 59 # Not exporting C++ inline functions can generally be applied anywhere | 63 # Not exporting C++ inline functions can generally be applied anywhere |
| (...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 } else { | 793 } else { |
| 790 cflags = [ "-g1" ] | 794 cflags = [ "-g1" ] |
| 791 } | 795 } |
| 792 } | 796 } |
| 793 | 797 |
| 794 config("no_symbols") { | 798 config("no_symbols") { |
| 795 if (!is_win) { | 799 if (!is_win) { |
| 796 cflags = [ "-g0" ] | 800 cflags = [ "-g0" ] |
| 797 } | 801 } |
| 798 } | 802 } |
| OLD | NEW |