Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21779

Cannot use Clang as C++ compiler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.8.0
    • None
    • Ubuntu 18.10
    • Linux/X11

      I installed Clang7 on Ubuntu 18.10, which QtCreator automatically picked up at /usr/bin/clang+-7, and set it as the C/C+ compiler in the Qt Kit configuration.

       

      However, instead of using the selected compiler (/usr/bin/clang+-7), qmake tries to call the global command "clang+". So apparently the selected compiler information isn't forwarded from QtCreator to QMake.

       

      I can make it work by symlinking /usr/bin/clang+7 to clang+, but that of course defeats the purpose of being able to select different compilers in QtCreator.

        1. 1_clang_detected.png
          1_clang_detected.png
          159 kB
        2. 2_clang_selected.png
          2_clang_selected.png
          158 kB
        3. 3_clang_not_found.png
          3_clang_not_found.png
          151 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            kandeler Christian Kandeler
            pwuertz Peter Würtz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes