Index: tools/gn/function_toolchain.cc |
diff --git a/tools/gn/function_toolchain.cc b/tools/gn/function_toolchain.cc |
index fa7d73ca13efdbe4d4fc3afcd887154412150ffa..3443c35e6d8276c64a065a5c90a77a5f24c43a06 100644 |
--- a/tools/gn/function_toolchain.cc |
+++ b/tools/gn/function_toolchain.cc |
@@ -107,6 +107,7 @@ Value RunToolchain(Scope* scope, |
// manager, but that has to be done in the lock. |
scoped_ptr<Toolchain> toolchain(new Toolchain(scope->settings(), label)); |
toolchain->set_defined_from(function); |
+ toolchain->visibility().SetPublic(); |
Scope block_scope(scope); |
block_scope.SetProperty(&kToolchainPropertyKey, toolchain.get()); |