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

Unified Diff: tools/gn/gn_main.cc

Issue 24613003: Allow typing label names on Windows by not treating things that start with slashes as arguments rat… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: const removed Created 7 years, 3 months 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/command_desc.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/gn_main.cc
diff --git a/tools/gn/gn_main.cc b/tools/gn/gn_main.cc
index c0300caff810ffe3b67fd2fd1f3ee1a3dc6adcdd..9c86ab5f01468947a8e958183ed35de5d507e6ec 100644
--- a/tools/gn/gn_main.cc
+++ b/tools/gn/gn_main.cc
@@ -27,6 +27,9 @@ std::vector<std::string> GetArgs(const CommandLine& cmdline) {
int main(int argc, char** argv) {
base::AtExitManager at_exit;
+#if defined(OS_WIN)
+ CommandLine::set_slash_is_not_a_switch();
+#endif
CommandLine::Init(argc, argv);
const CommandLine& cmdline = *CommandLine::ForCurrentProcess();
« no previous file with comments | « tools/gn/command_desc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698