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

Code model does not know about sysroot that is used by default by build system

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.4.0-beta1
    • Fix Version/s: Qt Creator 4.4.1
    • Labels:
      None
    • Environment:
      macOS, Xcode 8.3

      Description

      QMake, CMake and Qbs all automatically set a -isysroot when building (on macOS at least).
      But the code model does not get this sysroot set.

      This is especially problematic if the compiler is clang from a Xcode installation, i.e. when using /Applications/Xcode.app/......./clang++ because that actually requires a sysroot setting to find system headers. (/usr/bin/clang++ seems to automatically assume a sysroot from the MacOS SDK.)

      In 4.4 we even have autodetected tool chains (Apple Clang (<arch>)) which are affected by this.

        Attachments

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

          Activity

            People

            Assignee:
            con Eike Ziller
            Reporter:
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes