Index: tools/gn/loader.cc |
diff --git a/tools/gn/loader.cc b/tools/gn/loader.cc |
index 7e3ca3d0f3c78afbea48865aefb637d3d92cd11c..e0a0517882ff96b031ef12fe5df558c83438dc27 100644 |
--- a/tools/gn/loader.cc |
+++ b/tools/gn/loader.cc |
@@ -293,6 +293,9 @@ void LoaderImpl::BackgroundLoadBuildConfig( |
trace.Done(); |
+ if (err.has_error()) |
+ g_scheduler->FailWithError(err); |
+ |
base_config->ClearProcessingBuildConfig(); |
if (settings->is_default()) { |
// The default toolchain must have been set in the default build config |