| 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 if (is_posix) { | 9 if (is_posix) { |
| 10 import("//build/config/gcc/gcc_version.gni") | 10 import("//build/config/gcc/gcc_version.gni") |
| (...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 # part of Chromium. | 522 # part of Chromium. |
| 523 | 523 |
| 524 config("chromium_code") { | 524 config("chromium_code") { |
| 525 if (is_win) { | 525 if (is_win) { |
| 526 cflags = [ | 526 cflags = [ |
| 527 "/W4", # Warning level 4. | 527 "/W4", # Warning level 4. |
| 528 ] | 528 ] |
| 529 } else { | 529 } else { |
| 530 cflags = [ | 530 cflags = [ |
| 531 "-Wall", | 531 "-Wall", |
| 532 "-Wextra", | |
| 533 | 532 |
| 534 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't, | 533 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't, |
| 535 # so we specify it explicitly. | 534 # so we specify it explicitly. |
| 536 # TODO(fischman): remove this if http://llvm.org/PR10448 obsoletes it. | 535 # TODO(fischman): remove this if http://llvm.org/PR10448 obsoletes it. |
| 537 # http://code.google.com/p/chromium/issues/detail?id=90453 | 536 # http://code.google.com/p/chromium/issues/detail?id=90453 |
| 538 "-Wsign-compare", | 537 "-Wsign-compare", |
| 539 ] | 538 ] |
| 540 | 539 |
| 541 # In Chromium code, we define __STDC_foo_MACROS in order to get the | 540 # In Chromium code, we define __STDC_foo_MACROS in order to get the |
| 542 # C99 macros on Mac and Linux. | 541 # C99 macros on Mac and Linux. |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 952 cflags += [ "-gsplit-dwarf" ] | 951 cflags += [ "-gsplit-dwarf" ] |
| 953 } | 952 } |
| 954 } | 953 } |
| 955 } | 954 } |
| 956 | 955 |
| 957 config("no_symbols") { | 956 config("no_symbols") { |
| 958 if (!is_win) { | 957 if (!is_win) { |
| 959 cflags = [ "-g0" ] | 958 cflags = [ "-g0" ] |
| 960 } | 959 } |
| 961 } | 960 } |
| OLD | NEW |