diff options
author | Petr Hosek <phosek@chromium.org> | 2017-05-26 19:25:32 +0000 |
---|---|---|
committer | Petr Hosek <phosek@chromium.org> | 2017-05-26 19:25:32 +0000 |
commit | ffaefb90cd60322390967a74559e4d9c4cb92740 (patch) | |
tree | 156a7efe9f921953394deb8f1048010a8b4fd2fd /tools | |
parent | f1affd86d226c2767afd4350af54f9d61006b19d (diff) |
[scan-build] Patch to scan-build tool to support "--target=<value>" flag
The scan-build script provided by clang can be used to detect defects in
code in the compile time. However, we discovered that the
"--target=<value>" flag in clang is not properly handled by this script,
which results in failures when analyzing projects that have used this
flag in their makefile.
This single line of change allows scan-build script to properly handle
the "--target=<value>" flag.
Patch by Haowei Wu
Differential Revision: https://reviews.llvm.org/D33263
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304025 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/scan-build/libexec/ccc-analyzer | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/scan-build/libexec/ccc-analyzer b/tools/scan-build/libexec/ccc-analyzer index bfda1d326f..b0ec7e7e74 100755 --- a/tools/scan-build/libexec/ccc-analyzer +++ b/tools/scan-build/libexec/ccc-analyzer @@ -385,7 +385,8 @@ my %CompilerLinkerOptionMap = ( '-target' => 1, '-v' => 0, '-mmacosx-version-min' => 0, # This is really a 1 argument, but always has '=' - '-miphoneos-version-min' => 0 # This is really a 1 argument, but always has '=' + '-miphoneos-version-min' => 0, # This is really a 1 argument, but always has '=' + '--target' => 0 ); my %IgnoredOptionMap = ( |