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/clang/clang.gni") | 6 import("//build/config/clang/clang.gni") |
7 import("//build/config/nacl/config.gni") | 7 import("//build/config/nacl/config.gni") |
8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 import("//build/config/v8_target_cpu.gni") | 9 import("//build/config/v8_target_cpu.gni") |
10 import("//build/toolchain/cc_wrapper.gni") | 10 import("//build/toolchain/cc_wrapper.gni") |
11 import("//build/toolchain/clang_static_analyzer.gni") | 11 import("//build/toolchain/clang_static_analyzer.gni") |
12 import("//build/toolchain/goma.gni") | 12 import("//build/toolchain/goma.gni") |
13 import("//build/toolchain/toolchain.gni") | 13 import("//build/toolchain/toolchain.gni") |
14 | 14 |
15 # Path to the Clang static analysis wrapper script. | 15 # Path to the Clang static analysis wrapper script. |
16 # REVIEWERS: can you suggest a better location for this? | 16 # REVIEWERS: can you suggest a better location for this? |
17 # GN is really picky about dead stores of variables except at the global scope. | 17 # GN is really picky about dead stores of variables except at the global scope. |
18 analyzer_wrapper = | 18 analyzer_wrapper = |
19 rebase_path("//build/toolchain/clang_static_analyzer_wrapper.py", | 19 rebase_path("//build/toolchain/clang_static_analyzer_wrapper.py", |
20 root_build_dir) | 20 root_build_dir) + " --mode=clang" |
21 | 21 |
22 # This template defines a toolchain for something that works like gcc | 22 # This template defines a toolchain for something that works like gcc |
23 # (including clang). | 23 # (including clang). |
24 # | 24 # |
25 # It requires the following variables specifying the executables to run: | 25 # It requires the following variables specifying the executables to run: |
26 # - ar | 26 # - ar |
27 # - cc | 27 # - cc |
28 # - cxx | 28 # - cxx |
29 # - ld | 29 # - ld |
30 # | 30 # |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 ]) | 564 ]) |
565 | 565 |
566 toolchain_args = { | 566 toolchain_args = { |
567 if (defined(invoker.toolchain_args)) { | 567 if (defined(invoker.toolchain_args)) { |
568 forward_variables_from(invoker.toolchain_args, "*") | 568 forward_variables_from(invoker.toolchain_args, "*") |
569 } | 569 } |
570 is_clang = true | 570 is_clang = true |
571 } | 571 } |
572 } | 572 } |
573 } | 573 } |
OLD | NEW |