Index: build/config/sysroot.gni |
diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni |
index 2c26c34f24181c33d8a521f14e57053323026031..51f106ec2e81b410b136c77e493c9ddb0e1c07f8 100644 |
--- a/build/config/sysroot.gni |
+++ b/build/config/sysroot.gni |
@@ -75,6 +75,17 @@ if (current_os == target_os && current_cpu == target_cpu && |
} else if (is_ios) { |
import("//build/config/ios/ios_sdk.gni") |
sysroot = ios_sdk_path |
+} else if (is_fuchsia) { |
+ import("//build/config/fuchsia/config.gni") |
+ if (current_cpu == "arm64") { |
+ sysroot = fuchsia_sdk + "/sysroot/aarch64-fuchsia" |
+ } else if (current_cpu == "x64") { |
+ sysroot = fuchsia_sdk + "/sysroot/x86_64-fuchsia" |
+ } else { |
+ sysroot = "" |
+ } |
+ sysroot_stamp = rebase_path("$sysroot/.stamp") |
+ sysroot_version = read_file(sysroot_stamp, "trim string") |
} else { |
sysroot = "" |
} |