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

The C compiler doesn't change when choosing the compiler.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • None
    • Qt Creator 4.0.2
    • Arch Linux amd64

    Description

      When choosing the compiler in the kit, only the C++ compiler is changed with -DCMAKE_CXX_COMPILER. The C compiler will instead use the system default. Additionally, the compiler only lets you choose the path to the C++ compiler (e.g. g++ or clang++) without any way to give the path to the C compiler. (e.g. gcc or clang)

      For example, when trying to switch the compiler to clang, this is the output from cmake:

      – The C compiler identification is GNU 6.1.1
      – The CXX compiler identification is Clang 3.8.0
      – Check for working C compiler: /usr/bin/cc
      – Check for working C compiler: /usr/bin/cc – works
      ...
      – Check for working CXX compiler: /usr/bin/clang++
      – Check for working CXX compiler: /usr/bin/clang++ – works

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hunger Tobias Hunger
            akb825 Aaron Barany
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes