diff options
author | Ziqing Luo <ziqing@udel.edu> | 2024-04-09 13:09:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-09 13:09:52 -0700 |
commit | 63934821d56f4d366f61048ed6060978bbde1bc6 (patch) | |
tree | ccd2291f6c5edfdc09d04ba870cf38c9c00f43b1 | |
parent | 4bc4c7baed1a4ef13a0964fbf97f4dc1560de592 (diff) | |
download | llvm-63934821d56f4d366f61048ed6060978bbde1bc6.zip llvm-63934821d56f4d366f61048ed6060978bbde1bc6.tar.gz llvm-63934821d56f4d366f61048ed6060978bbde1bc6.tar.bz2 |
[Static Analyzer] Add handling of the `-nostdlibinc` option to ccc-analyzer (#88017)
Compiler options recognizable to ccc-analyzer are stored in maps. An
option missing in the map will be dropped by ccc-analyzer. This causes a
build error in one of our projects that only happens in scan-build but
not regular build, because ccc-analyzer do not recognize `-nostdlibinc`.
This commit adds the option to the map.
rdar://126082053
-rwxr-xr-x | clang/tools/scan-build/libexec/ccc-analyzer | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/tools/scan-build/libexec/ccc-analyzer b/clang/tools/scan-build/libexec/ccc-analyzer index 60796a5..c558881 100755 --- a/clang/tools/scan-build/libexec/ccc-analyzer +++ b/clang/tools/scan-build/libexec/ccc-analyzer @@ -361,6 +361,7 @@ sub Analyze { my %CompileOptionMap = ( '-nostdinc' => 0, + '-nostdlibinc' => 0, '-include' => 1, '-idirafter' => 1, '-imacros' => 1, |