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

Side by Side Diff: build/toolchain/nacl/BUILD.gn

Issue 1660053005: Add option cc_wrapper to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename to cc_wrapper Created 4 years, 10 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 | « build/toolchain/linux/BUILD.gn ('k') | docs/ccache_mac.md » ('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) 2014 The Native Client Authors. All rights reserved. 1 # Copyright (c) 2014 The Native Client 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 import("//build/config/sysroot.gni") 5 import("//build/config/sysroot.gni")
6 import("//build/config/nacl/config.gni") 6 import("//build/config/nacl/config.gni")
7 import("//build/toolchain/nacl_toolchain.gni") 7 import("//build/toolchain/nacl_toolchain.gni")
8 8
9 # Add the toolchain revision as a preprocessor define so that sources are 9 # Add the toolchain revision as a preprocessor define so that sources are
10 # rebuilt when a toolchain is updated. 10 # rebuilt when a toolchain is updated.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 scriptprefix = "cmd /c call " 47 scriptprefix = "cmd /c call "
48 scriptsuffix = ".bat" 48 scriptsuffix = ".bat"
49 } else { 49 } else {
50 scriptprefix = "" 50 scriptprefix = ""
51 scriptsuffix = "" 51 scriptsuffix = ""
52 } 52 }
53 53
54 # When the compilers are run via goma or ccache rather than directly by 54 # When the compilers are run via goma or ccache rather than directly by
55 # GN/Ninja, the goma/ccache wrapper handles .bat files but gets confused 55 # GN/Ninja, the goma/ccache wrapper handles .bat files but gets confused
56 # by being given the scriptprefix. 56 # by being given the scriptprefix.
57 if (host_os == "win" && !use_goma && !use_ccache) { 57 if (host_os == "win" && !use_goma && cc_wrapper == "") {
58 compiler_scriptprefix = scriptprefix 58 compiler_scriptprefix = scriptprefix
59 } else { 59 } else {
60 compiler_scriptprefix = "" 60 compiler_scriptprefix = ""
61 } 61 }
62 62
63 nacl_toolchain(target_name) { 63 nacl_toolchain(target_name) {
64 toolchain_package = "pnacl_newlib" 64 toolchain_package = "pnacl_newlib"
65 toolchain_revision = pnacl_newlib_rev 65 toolchain_revision = pnacl_newlib_rev
66 toolchain_cpu = "pnacl" 66 toolchain_cpu = "pnacl"
67 toolprefix = 67 toolprefix =
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 toolchain_tuple = "i686-nacl" 260 toolchain_tuple = "i686-nacl"
261 } 261 }
262 262
263 nacl_clang_toolchains("x64") { 263 nacl_clang_toolchains("x64") {
264 toolchain_tuple = "x86_64-nacl" 264 toolchain_tuple = "x86_64-nacl"
265 } 265 }
266 266
267 nacl_clang_toolchains("arm") { 267 nacl_clang_toolchains("arm") {
268 toolchain_tuple = "arm-nacl" 268 toolchain_tuple = "arm-nacl"
269 } 269 }
OLDNEW
« no previous file with comments | « build/toolchain/linux/BUILD.gn ('k') | docs/ccache_mac.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698