| 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 (current_cpu == "arm") { | 6 if (current_cpu == "arm") { |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 } | 8 } |
| 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| 10 import("//build/config/mips.gni") | 10 import("//build/config/mips.gni") |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 } | 158 } |
| 159 | 159 |
| 160 if (is_clang && !is_win && !is_nacl) { | 160 if (is_clang && !is_win && !is_nacl) { |
| 161 # This is here so that all files get recompiled after a clang roll and | 161 # This is here so that all files get recompiled after a clang roll and |
| 162 # when turning clang on or off. (defines are passed via the command line, | 162 # when turning clang on or off. (defines are passed via the command line, |
| 163 # and build system rebuild things when their commandline changes). Nothing | 163 # and build system rebuild things when their commandline changes). Nothing |
| 164 # should ever read this define. | 164 # should ever read this define. |
| 165 defines += [ "CR_CLANG_REVISION=" + | 165 defines += [ "CR_CLANG_REVISION=" + |
| 166 exec_script("//tools/clang/scripts/posix-print-revision.py", | 166 exec_script("//tools/clang/scripts/posix-print-revision.py", |
| 167 [], | 167 [], |
| 168 "value") ] | 168 "trim string") ] |
| 169 } | 169 } |
| 170 | 170 |
| 171 # Mac-specific compiler flags setup. | 171 # Mac-specific compiler flags setup. |
| 172 # ---------------------------------- | 172 # ---------------------------------- |
| 173 if (is_mac || is_ios) { | 173 if (is_mac || is_ios) { |
| 174 # These flags are shared between the C compiler and linker. | 174 # These flags are shared between the C compiler and linker. |
| 175 common_mac_flags = [] | 175 common_mac_flags = [] |
| 176 | 176 |
| 177 # CPU architecture. | 177 # CPU architecture. |
| 178 if (current_cpu == "x64") { | 178 if (current_cpu == "x64") { |
| (...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 cflags += [ "-gsplit-dwarf" ] | 1110 cflags += [ "-gsplit-dwarf" ] |
| 1111 } | 1111 } |
| 1112 } | 1112 } |
| 1113 } | 1113 } |
| 1114 | 1114 |
| 1115 config("no_symbols") { | 1115 config("no_symbols") { |
| 1116 if (!is_win) { | 1116 if (!is_win) { |
| 1117 cflags = [ "-g0" ] | 1117 cflags = [ "-g0" ] |
| 1118 } | 1118 } |
| 1119 } | 1119 } |
| OLD | NEW |