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

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

Issue 2211593002: Cleanup references to concurrent_links in gn binary. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@concurrent_links
Patch Set: Fix unittests. Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « tools/gn/toolchain.h ('k') | no next file » | 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/toolchain.h" 5 #include "tools/gn/toolchain.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 11 matching lines...) Expand all
22 const char* Toolchain::kToolSolink = "solink"; 22 const char* Toolchain::kToolSolink = "solink";
23 const char* Toolchain::kToolSolinkModule = "solink_module"; 23 const char* Toolchain::kToolSolinkModule = "solink_module";
24 const char* Toolchain::kToolLink = "link"; 24 const char* Toolchain::kToolLink = "link";
25 const char* Toolchain::kToolStamp = "stamp"; 25 const char* Toolchain::kToolStamp = "stamp";
26 const char* Toolchain::kToolCopy = "copy"; 26 const char* Toolchain::kToolCopy = "copy";
27 const char* Toolchain::kToolCopyBundleData = "copy_bundle_data"; 27 const char* Toolchain::kToolCopyBundleData = "copy_bundle_data";
28 const char* Toolchain::kToolCompileXCAssets = "compile_xcassets"; 28 const char* Toolchain::kToolCompileXCAssets = "compile_xcassets";
29 29
30 Toolchain::Toolchain(const Settings* settings, const Label& label) 30 Toolchain::Toolchain(const Settings* settings, const Label& label)
31 : Item(settings, label), 31 : Item(settings, label),
32 concurrent_links_(0),
33 setup_complete_(false) { 32 setup_complete_(false) {
34 } 33 }
35 34
36 Toolchain::~Toolchain() { 35 Toolchain::~Toolchain() {
37 } 36 }
38 37
39 Toolchain* Toolchain::AsToolchain() { 38 Toolchain* Toolchain::AsToolchain() {
40 return this; 39 return this;
41 } 40 }
42 41
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 return TYPE_STAMP; 169 return TYPE_STAMP;
171 default: 170 default:
172 NOTREACHED(); 171 NOTREACHED();
173 return Toolchain::TYPE_NONE; 172 return Toolchain::TYPE_NONE;
174 } 173 }
175 } 174 }
176 175
177 const Tool* Toolchain::GetToolForTargetFinalOutput(const Target* target) const { 176 const Tool* Toolchain::GetToolForTargetFinalOutput(const Target* target) const {
178 return tools_[GetToolTypeForTargetFinalOutput(target)].get(); 177 return tools_[GetToolTypeForTargetFinalOutput(target)].get();
179 } 178 }
OLDNEW
« no previous file with comments | « tools/gn/toolchain.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698