Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-82820

Insource builds and relative paths with Ninja generator

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Build System

    Description

      When using an in source build and the Ninja generator, the paths encoded in build.ninja are relative. This in turn causes the the builtin __FILE__ compiler intrinsic to have a relative file path instead of an absolute one.

      As far as we know, this affects the QT_SET_MAIN_SOURCE_PATH setup for every test we run. There can be further ramifications depending on whether we always expect __FILE__ to be an absolute path.

      There is an upstream bug report about this issue, which mentions that Ninja is the reason why absolute paths can not be used everywhere.

      Currently the workaround is to use out of source builds, which is the recommended practice when using CMake.

       

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              lebeernae Leander Beernaert
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews