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

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1352313002: GN: Harmonize ARM compiler settings with GYP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 import("//build/config/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/toolchain/ccache.gni") 8 import("//build/toolchain/ccache.gni")
9 9
10 if (current_cpu == "arm") { 10 if (current_cpu == "arm") {
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 # Else building libyuv gives clang's register allocator issues, 391 # Else building libyuv gives clang's register allocator issues,
392 # see llvm.org/PR15798 / crbug.com/233709 392 # see llvm.org/PR15798 / crbug.com/233709
393 "-momit-leaf-frame-pointer", 393 "-momit-leaf-frame-pointer",
394 394
395 # Align the stack on 16-byte boundaries, http://crbug.com/418554. 395 # Align the stack on 16-byte boundaries, http://crbug.com/418554.
396 "-mstack-alignment=16", 396 "-mstack-alignment=16",
397 "-mstackrealign", 397 "-mstackrealign",
398 ] 398 ]
399 } 399 }
400 } else if (current_cpu == "arm") { 400 } else if (current_cpu == "arm") {
401 if (is_clang && !is_android && !is_nacl) {
402 cflags += [
403 "-target",
404 "arm-linux-gnueabihf",
405 ]
406 ldflags += [
407 "-target",
408 "arm-linux-gnueabihf",
409 ]
410
411 # We need to disable clang's builtin assembler as it can't
412 # handle several asm files, crbug.com/124610
413 cflags += [ "-no-integrated-as" ]
414 }
401 if (!is_nacl) { 415 if (!is_nacl) {
402 cflags += [ 416 cflags += [
403 "-march=$arm_arch", 417 "-march=$arm_arch",
404 "-mfloat-abi=$arm_float_abi", 418 "-mfloat-abi=$arm_float_abi",
405 ] 419 ]
406 if (arm_use_thumb) { 420 if (arm_use_thumb) {
407 cflags += [ "-mthumb" ] 421 cflags += [ "-mthumb" ]
408 if (is_android && !is_clang) { 422 if (is_android && !is_clang) {
409 # Clang doesn't support this option. 423 # Clang doesn't support this option.
410 cflags += [ "-mthumb-interwork" ] 424 cflags += [ "-mthumb-interwork" ]
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 } else if (symbol_level == 1) { 1501 } else if (symbol_level == 1) {
1488 cflags = minimal_symbols_cflags 1502 cflags = minimal_symbols_cflags
1489 ldflags = minimal_symbols_ldflags 1503 ldflags = minimal_symbols_ldflags
1490 } else if (symbol_level == 2) { 1504 } else if (symbol_level == 2) {
1491 cflags = symbols_cflags 1505 cflags = symbols_cflags
1492 ldflags = symbols_ldflags 1506 ldflags = symbols_ldflags
1493 } else { 1507 } else {
1494 assert(false) 1508 assert(false)
1495 } 1509 }
1496 } 1510 }
OLDNEW
« no previous file with comments | « build/config/arm.gni ('k') | build/config/sysroot.gni » ('j') | build/config/sysroot.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698