Issue |
83666
|
Summary |
scan-build erroneously calls "clang -v" (compile with verbose logging) to get version instead of "clang --version"
|
Labels |
clang
|
Assignees |
|
Reporter |
whlavina
|
The scan-build tool invokes Clang with -v to get the version. The -v option is "--verbose" output, attempting to compile with no inputs. The correct option to get the version is "--version".
https://github.com/llvm/llvm-project/blob/597f9761c3a5ba278fa930d2fac13f156287d505/clang/tools/scan-build-py/lib/libscanbuild/clang.py#L38
Most of the time, it seems that the apparent behavior of --verbose (with no inputs) vs --version is identical, but we noticed this issue when we had linker (mis)configuration, which the former would trigger.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs