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

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

Issue 508763002: Hook up link pools in GN. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: default to 0 Created 6 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 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 <string.h> 7 #include <string.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "tools/gn/target.h" 10 #include "tools/gn/target.h"
11 #include "tools/gn/value.h" 11 #include "tools/gn/value.h"
12 12
13 const char* Toolchain::kToolCc = "cc"; 13 const char* Toolchain::kToolCc = "cc";
14 const char* Toolchain::kToolCxx = "cxx"; 14 const char* Toolchain::kToolCxx = "cxx";
15 const char* Toolchain::kToolObjC = "objc"; 15 const char* Toolchain::kToolObjC = "objc";
16 const char* Toolchain::kToolObjCxx = "objcxx"; 16 const char* Toolchain::kToolObjCxx = "objcxx";
17 const char* Toolchain::kToolRc = "rc"; 17 const char* Toolchain::kToolRc = "rc";
18 const char* Toolchain::kToolAsm = "asm"; 18 const char* Toolchain::kToolAsm = "asm";
19 const char* Toolchain::kToolAlink = "alink"; 19 const char* Toolchain::kToolAlink = "alink";
20 const char* Toolchain::kToolSolink = "solink"; 20 const char* Toolchain::kToolSolink = "solink";
21 const char* Toolchain::kToolLink = "link"; 21 const char* Toolchain::kToolLink = "link";
22 const char* Toolchain::kToolStamp = "stamp"; 22 const char* Toolchain::kToolStamp = "stamp";
23 const char* Toolchain::kToolCopy = "copy"; 23 const char* Toolchain::kToolCopy = "copy";
24 24
25 Toolchain::Toolchain(const Settings* settings, const Label& label) 25 Toolchain::Toolchain(const Settings* settings, const Label& label)
26 : Item(settings, label), 26 : Item(settings, label),
27 concurrent_links_(0),
27 setup_complete_(false) { 28 setup_complete_(false) {
28 } 29 }
29 30
30 Toolchain::~Toolchain() { 31 Toolchain::~Toolchain() {
31 } 32 }
32 33
33 Toolchain* Toolchain::AsToolchain() { 34 Toolchain* Toolchain::AsToolchain() {
34 return this; 35 return this;
35 } 36 }
36 37
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 return TYPE_STAMP; 149 return TYPE_STAMP;
149 default: 150 default:
150 NOTREACHED(); 151 NOTREACHED();
151 return Toolchain::TYPE_NONE; 152 return Toolchain::TYPE_NONE;
152 } 153 }
153 } 154 }
154 155
155 const Tool* Toolchain::GetToolForTargetFinalOutput(const Target* target) const { 156 const Tool* Toolchain::GetToolForTargetFinalOutput(const Target* target) const {
156 return tools_[GetToolTypeForTargetFinalOutput(target)].get(); 157 return tools_[GetToolTypeForTargetFinalOutput(target)].get();
157 } 158 }
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