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

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

Issue 1233683003: Pass corresponding C/C++ flags to ObjC/C++ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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/config/gcc/BUILD.gn ('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 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires 5 # TODO(brettw) Use "gcc_toolchain.gni" like the Linux toolchains. This requires
6 # some enhancements since the commands on Mac are slightly different than on 6 # some enhancements since the commands on Mac are slightly different than on
7 # Linux. 7 # Linux.
8 8
9 import("../goma.gni") 9 import("../goma.gni")
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} { {cflags_c}} -c {{source}} -o {{output}}" 74 command = "$cc -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} { {cflags_c}} -c {{source}} -o {{output}}"
75 depsformat = "gcc" 75 depsformat = "gcc"
76 description = "ASM {{output}}" 76 description = "ASM {{output}}"
77 outputs = [ 77 outputs = [
78 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", 78 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o",
79 ] 79 ]
80 } 80 }
81 81
82 tool("objc") { 82 tool("objc") {
83 depfile = "{{output}}.d" 83 depfile = "{{output}}.d"
84 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_c}} {{cflags_objc}} -c {{source}} -o {{output}}" 84 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_objc}} -c {{source}} -o {{output}}"
85 depsformat = "gcc" 85 depsformat = "gcc"
86 description = "OBJC {{output}}" 86 description = "OBJC {{output}}"
87 outputs = [ 87 outputs = [
88 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", 88 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o",
89 ] 89 ]
90 } 90 }
91 91
92 tool("objcxx") { 92 tool("objcxx") {
93 depfile = "{{output}}.d" 93 depfile = "{{output}}.d"
94 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_cc}} {{cflags_objcc}} -c {{source}} -o {{output}}" 94 command = "$cxx -MMD -MF $depfile {{defines}} {{include_dirs}} {{cflags}} {{cflags_objcc}} -c {{source}} -o {{output}}"
95 depsformat = "gcc" 95 depsformat = "gcc"
96 description = "OBJCXX {{output}}" 96 description = "OBJCXX {{output}}"
97 outputs = [ 97 outputs = [
98 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o", 98 "{{target_out_dir}}/{{target_output_name}}/{{source_name_part}}.o",
99 ] 99 ]
100 } 100 }
101 101
102 tool("alink") { 102 tool("alink") {
103 command = "rm -f {{output}} && ./gyp-mac-tool filter-libtool libtool -stat ic -o {{output}} {{inputs}}" 103 command = "rm -f {{output}} && ./gyp-mac-tool filter-libtool libtool -stat ic -o {{output}} {{inputs}}"
104 description = "LIBTOOL-STATIC {{output}}" 104 description = "LIBTOOL-STATIC {{output}}"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 } 225 }
226 226
227 mac_toolchain("x64") { 227 mac_toolchain("x64") {
228 toolchain_cpu = "x64" 228 toolchain_cpu = "x64"
229 toolchain_os = "mac" 229 toolchain_os = "mac"
230 cc = "${goma_prefix}/gcc" 230 cc = "${goma_prefix}/gcc"
231 cxx = "${goma_prefix}/g++" 231 cxx = "${goma_prefix}/g++"
232 ld = cxx 232 ld = cxx
233 is_clang = false 233 is_clang = false
234 } 234 }
OLDNEW
« no previous file with comments | « build/config/gcc/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698