| Index: build/config/sysroot.gni
|
| diff --git a/build/config/sysroot.gni b/build/config/sysroot.gni
|
| index debf77129b4b96688a04f1a42e19910124f442f0..948054ce8d30c8540a47d1301a3262fd273bd9aa 100644
|
| --- a/build/config/sysroot.gni
|
| +++ b/build/config/sysroot.gni
|
| @@ -48,6 +48,12 @@ if (current_toolchain == default_toolchain && target_sysroot != "") {
|
| # Any other builds don't use a sysroot.
|
| sysroot = ""
|
| }
|
| +
|
| + if (sysroot != "") {
|
| + assert(
|
| + exec_script("//build/dir_exists.py", [ sysroot ], "string") == "True",
|
| + "Missing sysroot ($sysroot). To fix, run: build/linux/sysroot_scripts/install-sysroot.py --arch=$current_cpu")
|
| + }
|
| } else if (is_mac) {
|
| import("//build/config/mac/mac_sdk.gni")
|
| sysroot = mac_sdk_path
|
|
|