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

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

Issue 1810423002: [iOS/GN] Fix compilation of ios_chrome_unittests with gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resources
Patch Set: Fix link error Created 4 years, 9 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/mac/BUILD.gn ('k') | components/autofill/ios/browser/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 # 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 import("//build/config/ios/ios_sdk.gni") 10 import("//build/config/ios/ios_sdk.gni")
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 toolchain_os = "mac" 282 toolchain_os = "mac"
283 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", 283 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
284 root_build_dir) 284 root_build_dir)
285 cc = "${goma_prefix}$prefix/clang" 285 cc = "${goma_prefix}$prefix/clang"
286 cxx = "${goma_prefix}$prefix/clang++" 286 cxx = "${goma_prefix}$prefix/clang++"
287 ld = cxx 287 ld = cxx
288 is_clang = true 288 is_clang = true
289 } 289 }
290 290
291 mac_toolchain("ios_clang_arm") { 291 mac_toolchain("ios_clang_arm") {
292 # TODO(GYP): Do we need ios_clang_armv7 and ios_clang_arm64 ?
293 toolchain_cpu = "arm" 292 toolchain_cpu = "arm"
294 toolchain_os = "mac" 293 toolchain_os = "mac"
295 294
296 # TODO(GYP): We need to support being able to use the version of clang 295 # TODO(GYP): We need to support being able to use the version of clang
297 # shipped w/ XCode instead of the one pulled from upstream. 296 # shipped w/ XCode instead of the one pulled from upstream.
298 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", 297 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
299 root_build_dir) 298 root_build_dir)
300 cc = "${goma_prefix}$prefix/clang" 299 cc = "${goma_prefix}$prefix/clang"
301 cxx = "${goma_prefix}$prefix/clang++" 300 cxx = "${goma_prefix}$prefix/clang++"
302 ld = cxx 301 ld = cxx
303 is_clang = true 302 is_clang = true
304 } 303 }
305 304
305 mac_toolchain("ios_clang_armv7") {
306 toolchain_cpu = "armv7"
307 toolchain_os = "mac"
308
309 # TODO(GYP): We need to support being able to use the version of clang
310 # shipped w/ XCode instead of the one pulled from upstream.
311 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
312 root_build_dir)
313 cc = "${goma_prefix}$prefix/clang"
314 cxx = "${goma_prefix}$prefix/clang++"
315 ld = cxx
316 is_clang = true
317 }
318
319 mac_toolchain("ios_clang_arm64") {
320 toolchain_cpu = "arm64"
321 toolchain_os = "mac"
322
323 # TODO(GYP): We need to support being able to use the version of clang
324 # shipped w/ XCode instead of the one pulled from upstream.
325 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
326 root_build_dir)
327 cc = "${goma_prefix}$prefix/clang"
328 cxx = "${goma_prefix}$prefix/clang++"
329 ld = cxx
330 is_clang = true
331 }
332
306 mac_toolchain("arm") { 333 mac_toolchain("arm") {
307 toolchain_cpu = "arm" 334 toolchain_cpu = "arm"
308 toolchain_os = "mac" 335 toolchain_os = "mac"
309 cc = "${goma_prefix}/gcc" 336 cc = "${goma_prefix}/gcc"
310 cxx = "${goma_prefix}/g++" 337 cxx = "${goma_prefix}/g++"
311 ld = cxx 338 ld = cxx
312 is_clang = false 339 is_clang = false
313 } 340 }
314 341
315 mac_toolchain("clang_x64") { 342 mac_toolchain("clang_x64") {
316 toolchain_cpu = "x64" 343 toolchain_cpu = "x64"
317 toolchain_os = "mac" 344 toolchain_os = "mac"
318 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin", 345 prefix = rebase_path("//third_party/llvm-build/Release+Asserts/bin",
319 root_build_dir) 346 root_build_dir)
320 cc = "${goma_prefix}$prefix/clang" 347 cc = "${goma_prefix}$prefix/clang"
321 cxx = "${goma_prefix}$prefix/clang++" 348 cxx = "${goma_prefix}$prefix/clang++"
322 ld = cxx 349 ld = cxx
323 is_clang = true 350 is_clang = true
324 } 351 }
325 352
326 mac_toolchain("x64") { 353 mac_toolchain("x64") {
327 toolchain_cpu = "x64" 354 toolchain_cpu = "x64"
328 toolchain_os = "mac" 355 toolchain_os = "mac"
329 cc = "${goma_prefix}/gcc" 356 cc = "${goma_prefix}/gcc"
330 cxx = "${goma_prefix}/g++" 357 cxx = "${goma_prefix}/g++"
331 ld = cxx 358 ld = cxx
332 is_clang = false 359 is_clang = false
333 } 360 }
OLDNEW
« no previous file with comments | « build/config/mac/BUILD.gn ('k') | components/autofill/ios/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698