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

Side by Side Diff: build/toolchain/gcc_toolchain.gni

Issue 227693007: Fix the Mac toolchain definition in the GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: line wrapping Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | build/toolchain/mac/BUILD.gn » ('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 # This template defines a GCC toolchain. 5 # This template defines a GCC toolchain.
6 # 6 #
7 # It requires the following variables specifying the executables to run: 7 # It requires the following variables specifying the executables to run:
8 # - cc 8 # - cc
9 # - cxx 9 # - cxx
10 # - ar 10 # - ar
11 # - ld 11 # - ld
12 # and the following which is used in the toolchain_args 12 # and the following which is used in the toolchain_args
13 # - toolchain_cpu_arch (What "cpu_arch" should be set to when invoking a 13 # - toolchain_cpu_arch (What "cpu_arch" should be set to when invoking a
14 # build using this toolchain.) 14 # build using this toolchain.)
15 # - toolchain_os (What "os" should be set to when invoking a build using this 15 # - toolchain_os (What "os" should be set to when invoking a build using this
16 # toolchain.) 16 # toolchain.)
17 template("gcc_toolchain") { 17 template("gcc_toolchain") {
18 toolchain(target_name) { 18 toolchain(target_name) {
19 assert(defined(invoker.cc), "gcc_toolchain() must specify a \"cc\" value") 19 assert(defined(invoker.cc), "gcc_toolchain() must specify a \"cc\" value")
20 assert(defined(invoker.cxx), "gcc_toolchain() must specify a \"cxx\" value") 20 assert(defined(invoker.cxx), "gcc_toolchain() must specify a \"cxx\" value")
21 assert(defined(invoker.ar), "gcc_toolchain() must specify a \"ar\" value") 21 assert(defined(invoker.ar), "gcc_toolchain() must specify a \"ar\" value")
22 assert(defined(invoker.ar), "gcc_toolchain() must specify a \"ld\" value") 22 assert(defined(invoker.ld), "gcc_toolchain() must specify a \"ld\" value")
23 assert(defined(invoker.toolchain_cpu_arch), 23 assert(defined(invoker.toolchain_cpu_arch),
24 "gcc_toolchain() must specify a \"toolchain_cpu_arch\"") 24 "gcc_toolchain() must specify a \"toolchain_cpu_arch\"")
25 assert(defined(invoker.toolchain_os), 25 assert(defined(invoker.toolchain_os),
26 "gcc_toolchain() must specify a \"toolchain_os\"") 26 "gcc_toolchain() must specify a \"toolchain_os\"")
27 27
28 # We can't do string interpolation ($ in strings) on things with dots in 28 # We can't do string interpolation ($ in strings) on things with dots in
29 # them. To allow us to use $cc below, for example, we create copies of 29 # them. To allow us to use $cc below, for example, we create copies of
30 # these values in our scope. 30 # these values in our scope.
31 cc = invoker.cc 31 cc = invoker.cc
32 cxx = invoker.cxx 32 cxx = invoker.cxx
33 ar = invoker.ar 33 ar = invoker.ar
34 ld = invoker.ld 34 ld = invoker.ld
35 35
36 # Make these apply to all tools below. 36 # Make these apply to all tools below.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 76 }
77 77
78 # When invoking this toolchain not as the default one, these args will be 78 # When invoking this toolchain not as the default one, these args will be
79 # passed to the build. They are ignored when this is the default toolchain. 79 # passed to the build. They are ignored when this is the default toolchain.
80 toolchain_args() { 80 toolchain_args() {
81 cpu_arch = invoker.toolchain_cpu_arch 81 cpu_arch = invoker.toolchain_cpu_arch
82 os = invoker.toolchain_os 82 os = invoker.toolchain_os
83 } 83 }
84 } 84 }
85 } 85 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698