[llvm-bugs] [Bug 51660] New: scan-build picks up the wrong toolchain

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Aug 28 13:38:18 PDT 2021


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: unassignedclangbugs at nondot.org
          Reporter: andrew.pennebaker at gmail.com
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
                    neeilans at live.com, richard-llvm at metafoo.co.uk

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210828/210aed35/attachment.html>


More information about the llvm-bugs mailing list