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 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
8 } | 8 } |
9 | 9 |
10 # compiler --------------------------------------------------------------------- | 10 # compiler --------------------------------------------------------------------- |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 ldflags += [ | 230 ldflags += [ |
231 # Enable identical code folding to reduce size. | 231 # Enable identical code folding to reduce size. |
232 "-Wl,--icf=safe", | 232 "-Wl,--icf=safe", |
233 ] | 233 ] |
234 } | 234 } |
235 | 235 |
236 if (is_clang) { | 236 if (is_clang) { |
237 if (cpu_arch == "arm") { | 237 if (cpu_arch == "arm") { |
238 cflags += [ | 238 cflags += [ |
239 "-target arm-linux-androideabi", | 239 "-target arm-linux-androideabi", |
| 240 "-mllvm -arm-enable-ehabi", |
240 ] | 241 ] |
241 ldflags += [ "-target arm-linux-androideabi" ] | 242 ldflags += [ "-target arm-linux-androideabi" ] |
242 } else if (cpu_arch == "x86") { | 243 } else if (cpu_arch == "x86") { |
243 cflags += [ "-target x86-linux-androideabi" ] | 244 cflags += [ "-target x86-linux-androideabi" ] |
244 ldflags += [ "-target x86-linux-androideabi" ] | 245 ldflags += [ "-target x86-linux-androideabi" ] |
245 } | 246 } |
246 } | 247 } |
247 } | 248 } |
248 } | 249 } |
249 | 250 |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 cflags = [ "-g1" ] | 672 cflags = [ "-g1" ] |
672 } | 673 } |
673 } | 674 } |
674 | 675 |
675 config("no_symbols") { | 676 config("no_symbols") { |
676 if (!is_win) { | 677 if (!is_win) { |
677 cflags = [ "-g0" ] | 678 cflags = [ "-g0" ] |
678 } | 679 } |
679 } | 680 } |
680 | 681 |
OLD | NEW |