Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
1.12.2
-
None
Description
import qbs CppApplication { name: "the-app" files: ["main.cpp"] cpp.cxxFlags: base.concat(["-include", "/home/nik/work/pch/qbs/included.h"]) // TODO: Adapt your path Group { files: ["precompiled-header.pch"] fileTags: ["cpp_pch_src"] } }
Compiling this results in
15:35:32: Running steps for project pro... compiling main.cpp [the-app] /usr/lib/icecc/bin/g++ -g -O0 -Wall -Wextra -m64 -pipe -fexceptions -fvisibility=default -include /home/nik/work/pch/qbs/included.h -include /home/nik/work/pch/build-pro-Desktop-Debug/qtc_Desktop_Debug/the-app.16c8070d/the-app_cpp -fPIC -o /home/nik/work/pch/build-pro-Desktop-Debug/qtc_Desktop_Debug/the-app.16c8070d/3a52ce780950d4d9/main.cpp.o -c /home/nik/work/pch/qbs/main.cpp cc1plus: fatal error: /home/nik/work/pch/build-pro-Desktop-Debug/qtc_Desktop_Debug/the-app.16c8070d/the-app_cpp: No such file or directory compilation terminated. Process failed with exit code 1. The following products could not be built for configuration qtc_Desktop_Debug: the-app Error while building/deploying project pro (kit: Desktop) When executing step "Qbs Build" 15:35:32: Elapsed time: 00:00.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-20602 Clang code model does not read "-include" compiler flag
- Closed