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

Side by Side Diff: tools/gn/setup.cc

Issue 51693002: GN: toolchain threading cleanup (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tools/gn/setup.h ('k') | tools/gn/target.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "tools/gn/setup.h" 5 #include "tools/gn/setup.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 if (cmdline->HasSwitch(kTracelogSwitch)) 195 if (cmdline->HasSwitch(kTracelogSwitch))
196 SaveTraces(cmdline->GetSwitchValuePath(kTracelogSwitch)); 196 SaveTraces(cmdline->GetSwitchValuePath(kTracelogSwitch));
197 197
198 return true; 198 return true;
199 } 199 }
200 200
201 // Setup ----------------------------------------------------------------------- 201 // Setup -----------------------------------------------------------------------
202 202
203 Setup::Setup() 203 Setup::Setup()
204 : CommonSetup(), 204 : CommonSetup(),
205 empty_toolchain_(Label()), 205 empty_settings_(&empty_build_settings_, std::string()),
206 empty_settings_(&empty_build_settings_, &empty_toolchain_, std::string()),
207 dotfile_scope_(&empty_settings_) { 206 dotfile_scope_(&empty_settings_) {
207 empty_settings_.set_toolchain_label(Label());
208 } 208 }
209 209
210 Setup::~Setup() { 210 Setup::~Setup() {
211 } 211 }
212 212
213 bool Setup::DoSetup() { 213 bool Setup::DoSetup() {
214 CommandLine* cmdline = CommandLine::ForCurrentProcess(); 214 CommandLine* cmdline = CommandLine::ForCurrentProcess();
215 215
216 scheduler_.set_verbose_logging(cmdline->HasSwitch(kSwitchVerbose)); 216 scheduler_.set_verbose_logging(cmdline->HasSwitch(kSwitchVerbose));
217 if (cmdline->HasSwitch(kTimeSwitch) || 217 if (cmdline->HasSwitch(kTimeSwitch) ||
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 } 429 }
430 430
431 void DependentSetup::RunPreMessageLoop() { 431 void DependentSetup::RunPreMessageLoop() {
432 CommonSetup::RunPreMessageLoop(); 432 CommonSetup::RunPreMessageLoop();
433 } 433 }
434 434
435 bool DependentSetup::RunPostMessageLoop() { 435 bool DependentSetup::RunPostMessageLoop() {
436 return CommonSetup::RunPostMessageLoop(); 436 return CommonSetup::RunPostMessageLoop();
437 } 437 }
438 438
OLDNEW
« no previous file with comments | « tools/gn/setup.h ('k') | tools/gn/target.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698