Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
1.0.1
-
None
-
edd7442969565de683b9a0cdf548b13fc8f17b3d
Description
I have already reported few bugs related to precompiled header support, but still qbs fails to build super simple application with precompiled header:
Product { Depends { name: 'cpp' } name: 'Test' type: 'application' files: ['main.cpp', 'pch.h'] cpp.cxxPrecompiledHeader: 'pch.h' }
Build -> Build File "main.cpp". Output:
compiling main.cpp /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -m64 -g -Wall -Wextra -pipe -fvisibility=default -x c++ -include /Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp -fPIC -c /Volumes/DATA/iProject/Test/main.cpp -o /Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/.obj/Test/main.cpp.o In file included from <built-in>:167: <command line>:1:10: fatal error: '/Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp' file not found #include "/Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp"
Build -> Build Project "Test" or Rebuild All gives same output.
Close QtCreator, open again, Build -> Build Project "Test". Build Success all of the sudden.
Ok then, add few strings to pch.h, save, Build -> Build Files "main.cpp". Output:
fatal error: file '/Volumes/DATA/iProject/Test/pch.h' has been modified since the precompiled header '/Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp.gch' was built
Build -> Build Project "Test" - same thing.
Rebuild All: fatal error: '/Volumes/DATA/iProject/Test/Test-build/qtc_Mac-debug/Test_cpp' file not found