forked from csutils/cscppc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cswrap-core: skip known wrappers while invoking an analyzer
We want to hook `gcc -fanalyzer` on `clang` if `clang` is used as the system compiler. However, it does not make sense to hook GCC Analyzer on `clang --analyze`, which is invoked by `csclng` while wrapping `gcc` as the system compiler. Apart from wasting resources by running multiple processes of GCC Analyzer in parallel, this was causing unnecessary noise in `scan.log` as GCC Analyzer complained about unsupported flags, which were injected by `csclng` for `clang --analyze` only: ``` gcc: error: unrecognized command-line option ‘-fno-caret-diagnostics’ gcc: error: unrecognized command-line option ‘-fno-caret-diagnostics’ gcc: error: unrecognized command-line option ‘-fno-caret-diagnostics’ ``` Reported-by: Lukáš Zaoral Fixes: commit 983b895 Related: csutils#43 Closes: csutils#44
- Loading branch information
Showing
2 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters