mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 02:16:05 +00:00
[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
This commit is contained in:
parent
4bc4c7baed
commit
63934821d5
@ -361,6 +361,7 @@ sub Analyze {
|
||||
|
||||
my %CompileOptionMap = (
|
||||
'-nostdinc' => 0,
|
||||
'-nostdlibinc' => 0,
|
||||
'-include' => 1,
|
||||
'-idirafter' => 1,
|
||||
'-imacros' => 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user