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

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

Issue 2892413002: Fix ARMv6 Linux cross-build (Closed)
Patch Set: Add an argument to specifiy the float ABI Created 3 years, 7 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 | « no previous file | build/toolchain/linux/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 declare_args() { 5 declare_args() {
6 # The optimization level to use for debug builds. 6 # The optimization level to use for debug builds.
7 if (is_android) { 7 if (is_android) {
8 # On Android we kind of optimize some things that don't affect debugging 8 # On Android we kind of optimize some things that don't affect debugging
9 # much even when optimization is disabled to get the binary size down. 9 # much even when optimization is disabled to get the binary size down.
10 debug_optimization_level = "s" 10 debug_optimization_level = "s"
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 # required when compiling Chrome for iOS. 549 # required when compiling Chrome for iOS.
550 default_warning_flags += [ "-Wpartial-availability" ] 550 default_warning_flags += [ "-Wpartial-availability" ]
551 } 551 }
552 552
553 # Suppress warnings about ABI changes on ARM (Clang doesn't give this 553 # Suppress warnings about ABI changes on ARM (Clang doesn't give this
554 # warning). 554 # warning).
555 if (current_cpu == "arm" && !is_clang) { 555 if (current_cpu == "arm" && !is_clang) {
556 default_warning_flags += [ "-Wno-psabi" ] 556 default_warning_flags += [ "-Wno-psabi" ]
557 } 557 }
558 558
559 # The Raspberry Pi 1 toolchain enables this warning, but Dart doesn't build
560 # cleanly with it.
561 if (is_linux && !is_clang && current_cpu == "arm" && arm_version == 6) {
562 default_warning_flags += [ "-Wno-type-limits" ]
563 }
564
559 if (is_android) { 565 if (is_android) {
560 # Disable any additional warnings enabled by the Android build system but 566 # Disable any additional warnings enabled by the Android build system but
561 # which chromium does not build cleanly with (when treating warning as 567 # which chromium does not build cleanly with (when treating warning as
562 # errors). 568 # errors).
563 default_warning_flags += [ 569 default_warning_flags += [
564 "-Wno-extra", 570 "-Wno-extra",
565 "-Wno-ignored-qualifiers", 571 "-Wno-ignored-qualifiers",
566 "-Wno-type-limits", 572 "-Wno-type-limits",
567 ] 573 ]
568 default_warning_flags_cc += [ 574 default_warning_flags_cc += [
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. 782 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue.
777 } 783 }
778 ldflags = [ "/DEBUG" ] 784 ldflags = [ "/DEBUG" ]
779 } else { 785 } else {
780 cflags = [ 786 cflags = [
781 "-g3", 787 "-g3",
782 "-ggdb3", 788 "-ggdb3",
783 ] 789 ]
784 } 790 }
785 } 791 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/linux/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698