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

Unified Diff: build/toolchain/toolchain.gni

Issue 1921853002: Replacing hard-coded clang version by a common variable. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: setting clang_version only when is_clang==true. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/win/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/toolchain.gni
diff --git a/build/toolchain/toolchain.gni b/build/toolchain/toolchain.gni
index dac6163f280f2f112c137f94830255347b2cfbf4..2dddba6bc15a479bb923892880fb5130bdd1781e 100644
--- a/build/toolchain/toolchain.gni
+++ b/build/toolchain/toolchain.gni
@@ -17,6 +17,14 @@ declare_args() {
# LLVM toolchain (see llvm_force_head_revision in
# build/config/compiler/BUILD.gn).
use_lld = false
+
+ # Clang compiler version. Clang files are placed at version-dependent paths.
brettw 2016/05/03 18:03:25 I was thinking: declare_args() { ... if
aizatsky 2016/05/03 18:07:31 Done. I didn't know conditionals are allowed in de
+ # It is set to a specific value below only when is_clang==true.
+ clang_version = "undefined"
+}
+
+if (is_clang) {
+ clang_version = "3.9.0"
}
# Subdirectory within root_out_dir for shared library files.
« no previous file with comments | « build/config/win/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698