https://bugs.llvm.org/show_bug.cgi?id=51660

            Bug ID: 51660
           Summary: scan-build picks up the wrong toolchain
           Product: clang
           Version: 10.0
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

scan-build picks up the wrong compiler toolchain.

I have my Ubuntu machine configured with the alternatives set to Clang[++]. cc
is soft linked to Clang. c++ is soft linked to Clang++. And CMake is using
Clang[++]. Nonetheless, scan-build insists on loading GCC.

This happens with `scan-build cmake .`, in basic C/C++ projects.

This happens with `scan-build conan install -s compiler.cppstd=17 -s
compiler=clang -s compiler.version=10 --build missing .`, in C/C++ Conan
projects.

Example project:

https://github.com/mcandre/swiper/tree/6ffe75c08e9937c063ed8fd852cc4f1ff0f94cb0

Please fix scan-build so that it better respects the configured toolchain.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to