Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 4.9.0-beta1
-
None
-
-
694c895ae499ed12bca0ace91278a8afbe81cfe9 (qt-creator/qt-creator/4.9)
Description
Building Qt Creator on Windows fails when the LLVM installation directory contains a space. The culprit is the following in clang_installation.pri:
LLVM_CXXFLAGS *= $$system($$llvm_config --cxxflags, lines)
which evaluates to -IC:\Program Files\LLVM\include /DWIN32 [...]", which will then be incorrectly split by splitFlags to the following (incorrect) LLVM_CXXFLAGS:
Files\LLVM\include -wd4141 -wd4146 -wd4180 -wd4244 -wd4258 -wd4267 -wd4291 -wd4345 -wd4351 -wd4355 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4800 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4324 -w14062 -we4238 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -DUNICODE -D_UNICODE -D_STDC_CONSTANT_MACROS -DSTDC_FORMAT_MACROS -D_STDC_LIMIT_MACROS
Attachments
For Gerrit Dashboard: QTCREATORBUG-21929 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
255399,4 | Clang: Only use llvm-config options starting with '/' or '-' | 4.9 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |