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

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

Issue 1361403002: Move goma/ccache logic to //build/toolchain/gcc_toolchain.gni (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move the invoker param docs Created 5 years, 3 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/toolchain/gcc_toolchain.gni ('k') | build/toolchain/nacl_toolchain.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/linux/BUILD.gn
diff --git a/build/toolchain/linux/BUILD.gn b/build/toolchain/linux/BUILD.gn
index 84a790df87f56bea99301e857fd062cf472e6faf..2e249386695c8ef4e6eabd632d0dc93ce6862b90 100644
--- a/build/toolchain/linux/BUILD.gn
+++ b/build/toolchain/linux/BUILD.gn
@@ -3,24 +3,13 @@
# found in the LICENSE file.
import("//build/config/sysroot.gni")
-import("//build/toolchain/ccache.gni")
import("//build/toolchain/gcc_toolchain.gni")
-import("//build/toolchain/goma.gni")
-
-if (use_goma) {
- assert(!use_ccache, "Goma and ccache can't be used together.")
- compiler_prefix = "$goma_dir/gomacc "
-} else if (use_ccache) {
- compiler_prefix = "ccache "
-} else {
- compiler_prefix = ""
-}
gcc_toolchain("clang_arm") {
prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
root_build_dir)
- cc = "${compiler_prefix}$prefix/clang"
- cxx = "${compiler_prefix}$prefix/clang++"
+ cc = "$prefix/clang"
+ cxx = "$prefix/clang++"
toolprefix = "arm-linux-gnueabihf-"
readelf = "${toolprefix}readelf"
@@ -37,8 +26,8 @@ gcc_toolchain("clang_arm") {
gcc_toolchain("arm") {
toolprefix = "arm-linux-gnueabihf-"
- cc = "${compiler_prefix}${toolprefix}gcc"
- cxx = "${compiler_prefix}${toolprefix}g++"
+ cc = "${toolprefix}gcc"
+ cxx = "${toolprefix}g++"
ar = "${toolprefix}ar"
ld = cxx
@@ -53,8 +42,8 @@ gcc_toolchain("arm") {
gcc_toolchain("clang_x86") {
prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
root_build_dir)
- cc = "${compiler_prefix}$prefix/clang"
- cxx = "${compiler_prefix}$prefix/clang++"
+ cc = "$prefix/clang"
+ cxx = "$prefix/clang++"
readelf = "readelf"
nm = "nm"
ar = "ar"
@@ -66,8 +55,8 @@ gcc_toolchain("clang_x86") {
}
gcc_toolchain("x86") {
- cc = "${compiler_prefix}gcc"
- cxx = "${compiler_prefix}g++"
+ cc = "gcc"
+ cxx = "g++"
readelf = "readelf"
nm = "nm"
@@ -82,8 +71,8 @@ gcc_toolchain("x86") {
gcc_toolchain("clang_x64") {
prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
root_build_dir)
- cc = "${compiler_prefix}$prefix/clang"
- cxx = "${compiler_prefix}$prefix/clang++"
+ cc = "$prefix/clang"
+ cxx = "$prefix/clang++"
readelf = "readelf"
nm = "nm"
@@ -96,8 +85,8 @@ gcc_toolchain("clang_x64") {
}
gcc_toolchain("x64") {
- cc = "${compiler_prefix}gcc"
- cxx = "${compiler_prefix}g++"
+ cc = "gcc"
+ cxx = "g++"
readelf = "readelf"
nm = "nm"
@@ -120,4 +109,6 @@ gcc_toolchain("mipsel") {
toolchain_cpu = "mipsel"
toolchain_os = "linux"
is_clang = false
+ use_ccache = false
+ use_goma = false
}
« no previous file with comments | « build/toolchain/gcc_toolchain.gni ('k') | build/toolchain/nacl_toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698