Index: build/config/linux/gconf/BUILD.gn |
diff --git a/build/config/linux/gconf/BUILD.gn b/build/config/linux/gconf/BUILD.gn |
index 60edf2d42b2c642e1d611bfae44ddef7370ffc99..262e96aa8e4007be15fd406121c7d0b5b210383c 100644 |
--- a/build/config/linux/gconf/BUILD.gn |
+++ b/build/config/linux/gconf/BUILD.gn |
@@ -8,6 +8,11 @@ |
# CrOS doesn't install GTK, gconf or any gnome packages. |
assert(!is_chromeos && use_gconf) |
+# These packages should _only_ be expected when building for a target. |
+# If these extra checks are not run, gconf is required when building host |
+# tools for a CrOS build. |
+assert(current_toolchain == default_toolchain) |
+ |
pkg_config("gconf") { |
packages = [ "gconf-2.0" ] |
defines = [ "USE_GCONF" ] |