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

Build error when LLVM path contains a space

    XMLWordPrintable

Details

    • Windows
    • 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

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

        Activity

          People

            yvvan Ivan Donchevskii
            VersalEszett Julius Bullinger
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes