Index: build/config/sysroot.gni |
diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni |
index ffd8921f859a67ac12e56bbf119dfae55b3e563e..956314924035259485511a10abcfbf69e8c1ee13 100644 |
--- a/build/config/sysroot.gni |
+++ b/build/config/sysroot.gni |
@@ -32,7 +32,8 @@ 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_chrome_branded && is_official_build && |
+ !is_chromeos_ui) { |
# For official builds, use the sysroot checked into the internal source repo |
# so that the builds work on older versions of Linux. |
if (current_cpu == "x64") { |
@@ -43,7 +44,7 @@ if (current_toolchain == default_toolchain && target_sysroot != "") { |
# Any other builds don't use a sysroot. |
sysroot = "" |
} |
-} else if (is_linux && !is_chromeos) { |
+} else if (is_linux && !is_chromeos_ui) { |
if (current_cpu == "mipsel") { |
sysroot = rebase_path("//mipsel-sysroot/sysroot") |
} else { |