Details
-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
Qt Creator 4.7.2, Qt Creator 4.8.0
-
Kubuntu Linux 18.10
gcc 5.5.0
gcc 8.2.0
Clang 7.0.0
Description
On my Linux system I have multiple versions of gcc, hence I created several kits to choose which one to use to compile.
When building a qmake project the compiler chosen in the active kit is always ignored and the default gcc compiler is used.
According to the Qt Creator manual:
In the Compiler field, select the C or C++ compiler used to build the project.
Which means that the kit is supposed to set the active compiler for the build.
The right compiler is chosen when I use a kit based on Clang.
Furthermore, everything is fine when the project is based on Qbs or CMake.
Steps to reproduce
A Linux system with multiple versions of gcc installed is required
- Create a kit for each version of gcc
- Create a Qt Console Application project and choose qmake as build system
- Copy the main.cpp attached in this report
- Build the project using a kit which is not based on the default compiler (for example gcc 5.5.0 in my case)
- Run the project and verify that the compiler used is always the default one (8.2.0 in my case)
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-21779 Cannot use Clang as C++ compiler
- Closed
-
QTCREATORBUG-28751 C++ compiler will not be replaced by the one user selected in [Preference -> Kits]
- Closed