Skip to content

Commit 91a2129

Browse files
committed
[Static Analyzer] Add handling of the -nostdlibinc option to ccc-analyzer (llvm#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 (cherry picked from commit 6393482)
1 parent c66e398 commit 91a2129

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/tools/scan-build/libexec/ccc-analyzer

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ sub Analyze {
361361

362362
my %CompileOptionMap = (
363363
'-nostdinc' => 0,
364+
'-nostdlibinc' => 0,
364365
'-include' => 1,
365366
'-idirafter' => 1,
366367
'-imacros' => 1,

0 commit comments

Comments
 (0)