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

Clang installation is not auto-detected for Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.0.0-beta1
    • Fix Version/s: Qt Creator 4.0.0-beta1
    • Labels:
      None
    • Environment:
      Windows 10, Clang 3.7.1
    • Commits:
      eb4d1584b6cd9d06a99dd74337917cac0aacece1

      Description

      Clang officially ships windows builds at http://llvm.org/releases/download.html

      They even have nightly builds http://llvm.org/builds/

      Clang on Windows works by using Visual C++ 2013/2015 headers and CRT.

      Qt Creator could check for the presence of `HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\LLVM\LLVM`.

      and then high jack existing Visual C++ kits by changing the following
      environment variables:

      $ set PATH=C:\Program Files (x86)\LLVM\msbuild-bin\;%PATH%
      $ set INCLUDE=C:\Program Files (x86)\LLVM\lib\clang\3.7.0\include\;%INCLUDE%
      

      Then everything should work as would normally do for Visual C++.

      Currently the LLVM 64 bit installer suffers from the following bug:
      https://llvm.org/bugs/show_bug.cgi?id=26212

      Clang on Windows is too important not to support.

      With minimum effort Qt Creator 3.7.0 could have some nice PR! – Clang supported on Windows!

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              hunger Tobias Hunger
              Reporter:
              cadam Cristian Adam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes