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 |
} |