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

Unified Diff: build/config/sysroot.gni

Issue 1901353002: Use target_sysroot when building for target OS on target CPU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert !is_chromeos Created 4 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/sysroot.gni
diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni
index dcd215a345c7267ac9f0172fefe2a698c3380ea6..44ded33e42cf4e4b9eb2fedb920c1eeaa7af72b7 100644
--- a/build/config/sysroot.gni
+++ b/build/config/sysroot.gni
@@ -14,7 +14,8 @@ declare_args() {
use_sysroot = true
}
-if (current_toolchain == default_toolchain && target_sysroot != "") {
+if (current_os == target_os && current_cpu == target_cpu &&
+ target_sysroot != "") {
sysroot = target_sysroot
} else if (is_android) {
import("//build/config/android/config.gni")
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698