| 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 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
| 8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
| 9 import("//build/toolchain/ccache.gni") | 9 import("//build/toolchain/ccache.gni") |
| 10 | 10 |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 # Clang doesn't support this option. | 418 # Clang doesn't support this option. |
| 419 cflags += [ "-mthumb-interwork" ] | 419 cflags += [ "-mthumb-interwork" ] |
| 420 } | 420 } |
| 421 } | 421 } |
| 422 } | 422 } |
| 423 if (arm_tune != "") { | 423 if (arm_tune != "") { |
| 424 cflags += [ "-mtune=$arm_tune" ] | 424 cflags += [ "-mtune=$arm_tune" ] |
| 425 } | 425 } |
| 426 } else if (current_cpu == "mipsel") { | 426 } else if (current_cpu == "mipsel") { |
| 427 if (mips_arch_variant == "r6") { | 427 if (mips_arch_variant == "r6") { |
| 428 cflags += [ | 428 if (is_clang) { |
| 429 "-mips32r6", | 429 cflags += [ |
| 430 "-Wa,-mips32r6", | 430 "-target", |
| 431 ] | 431 "mipsel-linux-gnu", |
| 432 if (is_android) { | 432 "-march=mips32r6", |
| 433 ] |
| 433 ldflags += [ | 434 ldflags += [ |
| 435 "-target", |
| 436 "mipsel-linux-gnu", |
| 437 ] |
| 438 } else { |
| 439 cflags += [ |
| 434 "-mips32r6", | 440 "-mips32r6", |
| 435 "-Wl,-melf32ltsmip", | 441 "-Wa,-mips32r6", |
| 442 ] |
| 443 if (is_android) { |
| 444 ldflags += [ |
| 445 "-mips32r6", |
| 446 "-Wl,-melf32ltsmip", |
| 447 ] |
| 448 } |
| 449 } |
| 450 } else if (mips_arch_variant == "r2") { |
| 451 if (is_clang) { |
| 452 if (is_android) { |
| 453 cflags += [ |
| 454 "-target", |
| 455 "mipsel-linux-android", |
| 456 "-march=mipsel", |
| 457 "-mcpu=mips32r2", |
| 458 ] |
| 459 ldflags += [ |
| 460 "-target", |
| 461 "mipsel-linux-android", |
| 462 ] |
| 463 } else { |
| 464 cflags += [ |
| 465 "-target", |
| 466 "mipsel-linux-gnu", |
| 467 "-march=mipsel", |
| 468 "-mcpu=mips32r2", |
| 469 ] |
| 470 ldflags += [ |
| 471 "-target", |
| 472 "mipsel-linux-gnu", |
| 473 ] |
| 474 } |
| 475 } else { |
| 476 cflags += [ |
| 477 "-mips32r2", |
| 478 "-Wa,-mips32r2", |
| 479 ] |
| 480 if (mips_float_abi == "hard" && mips_fpu_mode != "") { |
| 481 cflags += [ "-m$mips_fpu_mode" ] |
| 482 } |
| 483 } |
| 484 } else if (mips_arch_variant == "r1") { |
| 485 if (is_clang) { |
| 486 if (is_android) { |
| 487 cflags += [ |
| 488 "-target", |
| 489 "mipsel-linux-android", |
| 490 "-march=mipsel", |
| 491 "-mcpu=mips32", |
| 492 ] |
| 493 ldflags += [ |
| 494 "-target", |
| 495 "mipsel-linux-android", |
| 496 ] |
| 497 } else { |
| 498 cflags += [ |
| 499 "-target", |
| 500 "mipsel-linux-gnu", |
| 501 "-march=mipsel", |
| 502 "-mcpu=mips32", |
| 503 ] |
| 504 ldflags += [ |
| 505 "-target", |
| 506 "mipsel-linux-gnu", |
| 507 ] |
| 508 } |
| 509 } else { |
| 510 cflags += [ |
| 511 "-mips32", |
| 512 "-Wa,-mips32", |
| 436 ] | 513 ] |
| 437 } | 514 } |
| 438 } else if (mips_arch_variant == "r2") { | |
| 439 cflags += [ | |
| 440 "-mips32r2", | |
| 441 "-Wa,-mips32r2", | |
| 442 ] | |
| 443 if (mips_float_abi == "hard" && mips_fpu_mode != "") { | |
| 444 cflags += [ "-m$mips_fpu_mode" ] | |
| 445 } | |
| 446 } else if (mips_arch_variant == "r1") { | |
| 447 cflags += [ | |
| 448 "-mips32", | |
| 449 "-Wa,-mips32", | |
| 450 ] | |
| 451 } | 515 } |
| 452 | 516 |
| 453 if (mips_dsp_rev == 1) { | 517 if (mips_dsp_rev == 1) { |
| 454 cflags += [ "-mdsp" ] | 518 cflags += [ "-mdsp" ] |
| 455 } else if (mips_dsp_rev == 2) { | 519 } else if (mips_dsp_rev == 2) { |
| 456 cflags += [ "-mdspr2" ] | 520 cflags += [ "-mdspr2" ] |
| 457 } | 521 } |
| 458 | 522 |
| 459 cflags += [ "-m${mips_float_abi}-float" ] | 523 cflags += [ "-m${mips_float_abi}-float" ] |
| 460 } else if (current_cpu == "mips64el") { | 524 } else if (current_cpu == "mips64el") { |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1250 if (symbol_level == 0) { | 1314 if (symbol_level == 0) { |
| 1251 configs = [ ":no_symbols" ] | 1315 configs = [ ":no_symbols" ] |
| 1252 } else if (symbol_level == 1) { | 1316 } else if (symbol_level == 1) { |
| 1253 configs = [ ":minimal_symbols" ] | 1317 configs = [ ":minimal_symbols" ] |
| 1254 } else if (symbol_level == 2) { | 1318 } else if (symbol_level == 2) { |
| 1255 configs = [ ":symbols" ] | 1319 configs = [ ":symbols" ] |
| 1256 } else { | 1320 } else { |
| 1257 assert(false) | 1321 assert(false) |
| 1258 } | 1322 } |
| 1259 } | 1323 } |
| OLD | NEW |