Index: build/toolchain/toolchain.gni |
diff --git a/build/toolchain/toolchain.gni b/build/toolchain/toolchain.gni |
index c7d2ceed5aa4671d99b4c1b18ad86ac2797a66fe..00737b52c1da0730438cee47c8f11f8003e8b0d2 100644 |
--- a/build/toolchain/toolchain.gni |
+++ b/build/toolchain/toolchain.gni |
@@ -33,6 +33,9 @@ declare_args() { |
use_xcode_clang = is_ios && is_official_build |
} |
+assert(!use_xcode_clang || is_ios, |
+ "Using Xcode's clang is only supported in iOS builds") |
+ |
# Subdirectory within root_out_dir for shared library files. |
# TODO(agrieve): GYP sets this to "lib" for Linux & Android, but this won't work |
# in GN until support for loadable_module() is added. |