Index: tools/gn/settings.h |
diff --git a/tools/gn/settings.h b/tools/gn/settings.h |
index 919255136b5a643f35947ab01a581f10f41e80d7..91f641060f39f8240b1f85ce3e8ca8cacc10d6d4 100644 |
--- a/tools/gn/settings.h |
+++ b/tools/gn/settings.h |
@@ -39,6 +39,10 @@ class Settings { |
const BuildSettings* build_settings() const { return build_settings_; } |
+ // The actual Toolchain object pointer is not available on the settings |
+ // object because it might not be resolved yet. Code running after the |
+ // load is complete can ask the Builder for the Toolchain corresponding to |
+ // this label. |
const Label& toolchain_label() const { return toolchain_label_; } |
void set_toolchain_label(const Label& l) { toolchain_label_ = l; } |