Chromium Code Reviews| 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("clang.gni") | 5 import("clang.gni") |
| 6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
| 7 | 7 |
| 8 config("find_bad_constructs") { | 8 config("find_bad_constructs") { |
| 9 if (clang_use_chrome_plugins) { | 9 if (clang_use_chrome_plugins) { |
| 10 cflags = [] | 10 cflags = [] |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 53 | 53 |
| 54 if ((is_linux || is_android) && !is_chromecast) { | 54 if ((is_linux || is_android) && !is_chromecast) { |
| 55 cflags += [ | 55 cflags += [ |
| 56 "-Xclang", | 56 "-Xclang", |
| 57 "-plugin-arg-find-bad-constructs", | 57 "-plugin-arg-find-bad-constructs", |
| 58 "-Xclang", | 58 "-Xclang", |
| 59 "check-ipc", | 59 "check-ipc", |
| 60 ] | 60 ] |
| 61 } | 61 } |
| 62 } | 62 } |
| 63 | |
| 64 # TODO(ios): Remove once Xcode's libc++ has LLVM r256325. | |
| 65 if (use_system_clang && is_ios) { | |
|
Nico
2016/06/21 12:30:59
can we call this use_xcode_clang please? i don't w
sdefresne
2016/06/21 13:21:58
I've renamed the variable to "is_clang_xcode" to b
justincohen
2016/06/22 09:15:07
We haven't tried shipping with a chromium clang.
Nico
2016/06/22 14:30:27
The last two times (bitcode and...uh, don't rememb
| |
| 66 cflags += [ | |
| 67 "-isystem", | |
| 68 rebase_path("//third_party/llvm-build/Release+Asserts/include/c++/v1", | |
| 69 root_build_dir), | |
| 70 ] | |
| 71 } | |
| 63 } | 72 } |
| 64 | 73 |
| 65 # Enables some extra Clang-specific warnings. Some third-party code won't | 74 # Enables some extra Clang-specific warnings. Some third-party code won't |
| 66 # compile with these so may want to remove this config. | 75 # compile with these so may want to remove this config. |
| 67 config("extra_warnings") { | 76 config("extra_warnings") { |
| 68 cflags = [ | 77 cflags = [ |
| 69 "-Wheader-hygiene", | 78 "-Wheader-hygiene", |
| 70 | 79 |
| 71 # Warns when a const char[] is converted to bool. | 80 # Warns when a const char[] is converted to bool. |
| 72 "-Wstring-conversion", | 81 "-Wstring-conversion", |
| 73 ] | 82 ] |
| 74 } | 83 } |
| OLD | NEW |