OLD | NEW |
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/sysroot.gni") | 6 import("//build/config/sysroot.gni") |
7 if (cpu_arch == "arm") { | 7 if (cpu_arch == "arm") { |
8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
9 } | 9 } |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 cflags += [ | 110 cflags += [ |
111 "-march=$arm_arch", | 111 "-march=$arm_arch", |
112 "-mfpu=$arm_fpu", | 112 "-mfpu=$arm_fpu", |
113 "-mfloat-abi=$arm_float_abi", | 113 "-mfloat-abi=$arm_float_abi", |
114 ] | 114 ] |
115 if (arm_tune != "") { | 115 if (arm_tune != "") { |
116 cflags += "-mtune=$arm_tune" | 116 cflags += "-mtune=$arm_tune" |
117 } | 117 } |
118 if (arm_use_thumb) { | 118 if (arm_use_thumb) { |
119 cflags += [ "-mthumb" ] | 119 cflags += [ "-mthumb" ] |
120 if (is_android) { | 120 if (is_android && !is_clang) { # Clang doesn't support this option. |
121 cflags += [ "-mthumb-interwork" ] | 121 cflags += [ "-mthumb-interwork" ] |
122 } | 122 } |
123 } | 123 } |
124 } | 124 } |
125 } | 125 } |
126 | 126 |
127 defines += [ "_FILE_OFFSET_BITS=64" ] | 127 defines += [ "_FILE_OFFSET_BITS=64" ] |
128 | 128 |
129 # Omit unwind support in official builds to save space. We can use breakpad | 129 # Omit unwind support in official builds to save space. We can use breakpad |
130 # for these builds. | 130 # for these builds. |
(...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 } else { | 669 } else { |
670 cflags = [ "-g1" ] | 670 cflags = [ "-g1" ] |
671 } | 671 } |
672 } | 672 } |
673 | 673 |
674 config("no_symbols") { | 674 config("no_symbols") { |
675 if (!is_win) { | 675 if (!is_win) { |
676 cflags = [ "-g0" ] | 676 cflags = [ "-g0" ] |
677 } | 677 } |
678 } | 678 } |
OLD | NEW |