Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: tools/gn/settings.h

Issue 56433003: GN threading refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/secondary/base/BUILD.gn ('k') | tools/gn/settings.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/settings.h
diff --git a/tools/gn/settings.h b/tools/gn/settings.h
index df6a3d63576a470c284d8cef13b54f5f2a18df31..f2e8925fdfc21e2c3911d68e4bf9560b69a8ef6e 100644
--- a/tools/gn/settings.h
+++ b/tools/gn/settings.h
@@ -46,9 +46,17 @@ class Settings {
const Label& toolchain_label() const { return toolchain_label_; }
void set_toolchain_label(const Label& l) { toolchain_label_ = l; }
+ const Label& default_toolchain_label() const {
+ return default_toolchain_label_;
+ }
+ void set_default_toolchain_label(const Label& default_label) {
+ default_toolchain_label_ = default_label;
+ }
+
// Indicates if this corresponds to the default toolchain.
- bool is_default() const { return is_default_; }
- void set_is_default(bool id) { is_default_ = id; }
+ bool is_default() const {
+ return toolchain_label_ == default_toolchain_label_;
+ }
bool IsMac() const { return target_os_ == MAC; }
bool IsLinux() const { return target_os_ == LINUX; }
@@ -94,7 +102,7 @@ class Settings {
const BuildSettings* build_settings_;
Label toolchain_label_;
- bool is_default_;
+ Label default_toolchain_label_;
TargetOS target_os_;
« no previous file with comments | « tools/gn/secondary/base/BUILD.gn ('k') | tools/gn/settings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698