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

Unified Diff: tools/gn/settings.cc

Issue 1431323003: Remove obsolete OS handling in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/settings.h ('k') | tools/gn/variables.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/settings.cc
diff --git a/tools/gn/settings.cc b/tools/gn/settings.cc
index a5f90d6f21ec95b4eeceec825eeb7fb87227b084..034e601a3476b742b98be657d69e72917e2d3cec 100644
--- a/tools/gn/settings.cc
+++ b/tools/gn/settings.cc
@@ -29,20 +29,6 @@ Settings::Settings(const BuildSettings* build_settings,
// one-off data without doing generation.
if (!toolchain_output_dir_.is_null())
toolchain_gen_dir_ = SourceDir(toolchain_output_dir_.value() + "gen/");
-
-#if defined(OS_WIN)
- target_os_ = WIN;
-#elif defined(OS_MACOSX)
- target_os_ = MAC;
-#elif defined(OS_LINUX)
- target_os_ = LINUX;
-#elif defined(OS_ANDROID)
- // Currently we don't have an "Android" target OS, it looks just like Linux
- // from our perspective.
- target_os_ = LINUX;
-#else
- #error implement me
-#endif
}
Settings::~Settings() {
« no previous file with comments | « tools/gn/settings.h ('k') | tools/gn/variables.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698