Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cswrap-core: skip known wrappers while invoking an analyzer #44

Merged
merged 1 commit into from
Jul 23, 2024

Commits on Jul 22, 2024

  1. 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
    kdudka committed Jul 22, 2024
    Configuration menu
    Copy the full SHA
    1bbbfa0 View commit details
    Browse the repository at this point in the history