summaryrefslogtreecommitdiffstats
path: root/build/config/sysroot.gni
diff options
context:
space:
mode:
authorsbc <sbc@chromium.org>2015-11-23 13:55:20 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-23 21:56:06 +0000
commita931efd5dc8d8783ce73a64fc641627866b6869d (patch)
tree2758fdfdf4caae85f49071d1e7d60ac2cfaf9f94 /build/config/sysroot.gni
parent15223e977e59eafbb2476c7224641adc1589d860 (diff)
downloadchromium_src-a931efd5dc8d8783ce73a64fc641627866b6869d.zip
chromium_src-a931efd5dc8d8783ce73a64fc641627866b6869d.tar.gz
chromium_src-a931efd5dc8d8783ce73a64fc641627866b6869d.tar.bz2
Use sysroot by default for all linux builds
Using a sysroot was already the default for official build and when cross compiling (e.g. arm, mips, x86-32). This change makes it the default in all cases. The old behavior of building against local system libraries can still be achieved by setting use_sysroot=0 BUG=504446 Review URL: https://codereview.chromium.org/1464983003 Cr-Commit-Position: refs/heads/master@{#361197}
Diffstat (limited to 'build/config/sysroot.gni')
-rw-r--r--build/config/sysroot.gni18
1 files changed, 7 insertions, 11 deletions
diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni
index 43709cc..debf771 100644
--- a/build/config/sysroot.gni
+++ b/build/config/sysroot.gni
@@ -11,6 +11,7 @@ declare_args() {
# The absolute path of the sysroot that is applied when compiling using
# the target toolchain.
target_sysroot = ""
+ use_sysroot = true
}
if (current_toolchain == default_toolchain && target_sysroot != "") {
@@ -32,28 +33,23 @@ if (current_toolchain == default_toolchain && target_sysroot != "") {
} else {
sysroot = ""
}
-} else if (is_linux && is_chrome_branded && is_official_build && !is_chromeos) {
- # For official builds, use the sysroot checked into the internal source repo
- # so that the builds work on older versions of Linux.
+} else if (is_linux && !is_chromeos && use_sysroot) {
+ # By default build against a sysroot image downloaded from Cloud Storage
+ # during gclient runhooks.
if (current_cpu == "x64") {
sysroot = rebase_path("//build/linux/debian_wheezy_amd64-sysroot")
} else if (current_cpu == "x86") {
sysroot = rebase_path("//build/linux/debian_wheezy_i386-sysroot")
- } else {
- # Any other builds don't use a sysroot.
- sysroot = ""
- }
-} else if (is_linux && !is_chromeos) {
- if (current_cpu == "mipsel") {
- sysroot = rebase_path("//mipsel-sysroot/sysroot")
+ } else if (current_cpu == "mipsel") {
+ sysroot = rebase_path("//build/linux/debian_wheezy_mips-sysroot")
} else if (current_cpu == "arm") {
sysroot = rebase_path("//build/linux/debian_wheezy_arm-sysroot")
} else {
+ # Any other builds don't use a sysroot.
sysroot = ""
}
} else if (is_mac) {
import("//build/config/mac/mac_sdk.gni")
-
sysroot = mac_sdk_path
} else if (is_ios) {
import("//build/config/ios/ios_sdk.gni")