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

Unified Diff: build/config/sysroot.gni

Issue 2476343004: GN: Add an option to build against the Debian wheezy sysroot (Closed)
Patch Set: Created 4 years, 1 month 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 | « build/config/linux/BUILD.gn ('k') | build/detect_host_arch.py » ('j') | 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 37faae059c3ee5af5cf67180cda341f8840162b5..bb29e6c1340e70af8695f0a1927d02b3665446f5 100644
--- a/build/config/sysroot.gni
+++ b/build/config/sysroot.gni
@@ -9,6 +9,20 @@ declare_args() {
# The absolute path of the sysroot that is applied when compiling using
# the target toolchain.
target_sysroot = ""
+
+ # Whether the Debian wheezy sysroot should be used.
+ dart_use_wheezy_sysroot = false
+}
+
+if (is_linux && dart_use_wheezy_sysroot) {
+ if (current_cpu == "x86") {
+ target_sysroot = rebase_path("//build/linux/debian_wheezy_i386-sysroot")
+ } else if (current_cpu == "x64") {
+ target_sysroot = rebase_path("//build/linux/debian_wheezy_amd64-sysroot")
+ } else {
+ print("There is no Debian wheezy sysroot present for $current_cpu")
+ assert(false)
+ }
}
if (current_toolchain == default_toolchain && target_sysroot != "") {
« no previous file with comments | « build/config/linux/BUILD.gn ('k') | build/detect_host_arch.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698