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

Unified Diff: build/toolchain/mac/BUILD.gn

Issue 2088823002: Remove toolchain definition to build with gcc on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ios-uses-xcode-clang
Patch Set: Rebase Created 4 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/mac/BUILD.gn
diff --git a/build/toolchain/mac/BUILD.gn b/build/toolchain/mac/BUILD.gn
index a58c3b4e67266d1eb7e8952b7b1350aebbd8f2a8..3fa1a3abfd904f2c4af3afa7b0f2bfd18ea0fb7a 100644
--- a/build/toolchain/mac/BUILD.gn
+++ b/build/toolchain/mac/BUILD.gn
@@ -27,11 +27,10 @@ if (use_goma) {
compiler_prefix = ""
}
-if (use_xcode_clang) {
- _clang_prefix = ""
-} else {
- _clang_prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin/",
- root_build_dir)
+if (!use_xcode_clang) {
+ compiler_prefix = compiler_prefix +
+ rebase_path("//third_party/llvm-build/Release+Asserts/bin/",
+ root_build_dir)
}
if (current_toolchain == default_toolchain) {
@@ -361,44 +360,26 @@ template("mac_toolchain") {
mac_toolchain("clang_arm") {
toolchain_cpu = "arm"
toolchain_os = "mac"
- cc = "${compiler_prefix}${_clang_prefix}clang"
- cxx = "${compiler_prefix}${_clang_prefix}clang++"
+ cc = "${compiler_prefix}clang"
sdefresne 2016/06/21 20:33:18 I noticed that cc/cxx/ld/is_clang are always the s
Dirk Pranke 2016/06/21 21:24:50 It probably would be a good idea to inline them in
+ cxx = "${compiler_prefix}clang++"
ld = cxx
is_clang = true
}
-mac_toolchain("arm") {
- toolchain_cpu = "arm"
- toolchain_os = "mac"
- cc = "${compiler_prefix}gcc"
- cxx = "${compiler_prefix}g++"
- ld = cxx
- is_clang = false
-}
-
mac_toolchain("clang_x64") {
toolchain_cpu = "x64"
toolchain_os = "mac"
- cc = "${compiler_prefix}${_clang_prefix}clang"
- cxx = "${compiler_prefix}${_clang_prefix}clang++"
+ cc = "${compiler_prefix}clang"
+ cxx = "${compiler_prefix}clang++"
ld = cxx
is_clang = true
}
-mac_toolchain("x64") {
- toolchain_cpu = "x64"
- toolchain_os = "mac"
- cc = "${compiler_prefix}gcc"
- cxx = "${compiler_prefix}g++"
- ld = cxx
- is_clang = false
-}
-
mac_toolchain("ios_clang_arm") {
toolchain_cpu = "arm"
toolchain_os = "mac"
- cc = "${compiler_prefix}${_clang_prefix}clang"
- cxx = "${compiler_prefix}${_clang_prefix}clang++"
+ cc = "${compiler_prefix}clang"
+ cxx = "${compiler_prefix}clang++"
ld = cxx
is_clang = true
}
@@ -406,8 +387,8 @@ mac_toolchain("ios_clang_arm") {
mac_toolchain("ios_clang_arm64") {
toolchain_cpu = "arm64"
toolchain_os = "mac"
- cc = "${compiler_prefix}${_clang_prefix}clang"
- cxx = "${compiler_prefix}${_clang_prefix}clang++"
+ cc = "${compiler_prefix}clang"
+ cxx = "${compiler_prefix}clang++"
ld = cxx
is_clang = true
}
@@ -415,8 +396,8 @@ mac_toolchain("ios_clang_arm64") {
mac_toolchain("ios_clang_x86") {
toolchain_cpu = "x86"
toolchain_os = "mac"
- cc = "${compiler_prefix}${_clang_prefix}clang"
- cxx = "${compiler_prefix}${_clang_prefix}clang++"
+ cc = "${compiler_prefix}clang"
+ cxx = "${compiler_prefix}clang++"
ld = cxx
is_clang = true
}
@@ -424,8 +405,8 @@ mac_toolchain("ios_clang_x86") {
mac_toolchain("ios_clang_x64") {
toolchain_cpu = "x64"
toolchain_os = "mac"
- cc = "${compiler_prefix}${_clang_prefix}clang"
- cxx = "${compiler_prefix}${_clang_prefix}clang++"
+ cc = "${compiler_prefix}clang"
+ cxx = "${compiler_prefix}clang++"
ld = cxx
is_clang = true
}
« 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