| 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 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/toolchain/ccache.gni") | 8 import("//build/toolchain/ccache.gni") |
| 9 | 9 |
| 10 if (current_cpu == "arm") { | 10 if (current_cpu == "arm") { |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 # System-specific flags. If your compiler flags apply to one of the | 106 # System-specific flags. If your compiler flags apply to one of the |
| 107 # categories here, add it to the associated file to keep this shared config | 107 # categories here, add it to the associated file to keep this shared config |
| 108 # smaller. | 108 # smaller. |
| 109 if (is_win) { | 109 if (is_win) { |
| 110 configs += [ "//build/config/win:compiler" ] | 110 configs += [ "//build/config/win:compiler" ] |
| 111 } else if (is_android) { | 111 } else if (is_android) { |
| 112 configs += [ "//build/config/android:compiler" ] | 112 configs += [ "//build/config/android:compiler" ] |
| 113 } else if (is_linux) { | 113 } else if (is_linux) { |
| 114 configs += [ "//build/config/linux:compiler" ] | 114 configs += [ "//build/config/linux:compiler" ] |
| 115 } else if (is_ios || is_mac) { |
| 116 configs += [ "//build/config/mac:compiler" ] |
| 115 } | 117 } |
| 116 | 118 |
| 117 # In general, Windows is totally different, but all the other builds share | 119 # In general, Windows is totally different, but all the other builds share |
| 118 # some common GCC configuration. | 120 # some common GCC configuration. |
| 119 if (!is_win) { | 121 if (!is_win) { |
| 120 # Common GCC compiler flags setup. | 122 # Common GCC compiler flags setup. |
| 121 # -------------------------------- | 123 # -------------------------------- |
| 122 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 | 124 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 |
| 123 cflags_cc += [ | 125 cflags_cc += [ |
| 124 "-fno-threadsafe-statics", | 126 "-fno-threadsafe-statics", |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 if (symbol_level == 0) { | 1115 if (symbol_level == 0) { |
| 1114 configs = [ ":no_symbols" ] | 1116 configs = [ ":no_symbols" ] |
| 1115 } else if (symbol_level == 1) { | 1117 } else if (symbol_level == 1) { |
| 1116 configs = [ ":minimal_symbols" ] | 1118 configs = [ ":minimal_symbols" ] |
| 1117 } else if (symbol_level == 2) { | 1119 } else if (symbol_level == 2) { |
| 1118 configs = [ ":symbols" ] | 1120 configs = [ ":symbols" ] |
| 1119 } else { | 1121 } else { |
| 1120 assert(false) | 1122 assert(false) |
| 1121 } | 1123 } |
| 1122 } | 1124 } |
| OLD | NEW |