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

-Bprefix option should be passed through GccToolChain::createBuiltInHeaderPathsRunner

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.8.0-beta2
    • Qt Creator 4.7.0
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 16.04, custom Yocto cross-toolchain, wine 1.8.2 / 3.0.3
    • Linux/X11
    • c0a1683de3dd6e29c93d8c1fb268a6cc4a7c02c5 (qt-creator/qt-creator/4.8)

    Description

      When calling a cross-toolchain, certain flags (including --sysroot) are passed through from the

      ProjectExplorer.GccToolChain.PlatformCodeGenFlags to the code model's probing.

      https://github.com/qt-creator/qt-creator/blob/4032f6383a411768ddf6e6059aaed6c552fb65da/src/plugins/projectexplorer/gcctoolchain.cpp#L564-L570

      For the winegcc wrapper (and probably others?) to work with a cross-toolchain not normally in $PATH, -Bprefix is also needed, and feels appropriate alongside --sysroot (one is where to find host executables, the other where to find target libraries and headers). https://gcc.gnu.org/onlinedocs/gcc/Directory-Options.html#Directory-Options

      Could that be added?

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            puetzk Kevin Puetz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes