Chromium Code Reviews| Index: build/config/sysroot.gni |
| diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni |
| index 43709cc4cb041b7cd8171bb019c335a7d39fdfd6..b3bd0f600b992877b83b4789ff2540ea8fcc39e5 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) { |
| +} else if (is_linux && !is_chromeos && use_sysroot) { |
| # For official builds, use the sysroot checked into the internal source repo |
|
Lei Zhang
2015/11/22 23:15:24
Update comment.
Sam Clegg
2015/11/23 17:02:55
Done.
|
| # so that the builds work on older versions of Linux. |
| 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") |