| 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/chrome_build.gni") | 6 import("//build/config/chrome_build.gni") |
| 7 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
| 8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
| 9 } | 9 } |
| 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 568 # Enable identical code folding to reduce size. | 568 # Enable identical code folding to reduce size. |
| 569 "-Wl,--icf=safe", | 569 "-Wl,--icf=safe", |
| 570 ] | 570 ] |
| 571 } | 571 } |
| 572 | 572 |
| 573 if (is_clang) { | 573 if (is_clang) { |
| 574 if (current_cpu == "arm") { | 574 if (current_cpu == "arm") { |
| 575 cflags += [ "-target arm-linux-androideabi" ] | 575 cflags += [ "-target arm-linux-androideabi" ] |
| 576 ldflags += [ "-target arm-linux-androideabi" ] | 576 ldflags += [ "-target arm-linux-androideabi" ] |
| 577 } else if (current_cpu == "x86") { | 577 } else if (current_cpu == "x86") { |
| 578 cflags += [ "-target x86-linux-androideabi" ] | 578 cflags += [ "-target i686-linux-androideabi" ] |
| 579 ldflags += [ "-target x86-linux-androideabi" ] | 579 ldflags += [ "-target i686-linux-androideabi" ] |
| 580 } | 580 } |
| 581 } | 581 } |
| 582 } | 582 } |
| 583 | 583 |
| 584 # Pass the same C/C++ flags to the objective C/C++ compiler. | 584 # Pass the same C/C++ flags to the objective C/C++ compiler. |
| 585 cflags_objc += cflags_c | 585 cflags_objc += cflags_c |
| 586 cflags_objcc += cflags_cc | 586 cflags_objcc += cflags_cc |
| 587 } | 587 } |
| 588 | 588 |
| 589 config("compiler_arm_fpu") { | 589 config("compiler_arm_fpu") { |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 cflags += [ "-gsplit-dwarf" ] | 1281 cflags += [ "-gsplit-dwarf" ] |
| 1282 } | 1282 } |
| 1283 } | 1283 } |
| 1284 } | 1284 } |
| 1285 | 1285 |
| 1286 config("no_symbols") { | 1286 config("no_symbols") { |
| 1287 if (!is_win) { | 1287 if (!is_win) { |
| 1288 cflags = [ "-g0" ] | 1288 cflags = [ "-g0" ] |
| 1289 } | 1289 } |
| 1290 } | 1290 } |
| OLD | NEW |