Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1049453002: build/config: use "trim string" instead of "value" for clang revision (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698