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

Insource builds and relative paths with Ninja generator

XMLWordPrintable

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

      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.

       

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

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

              Created:
              Updated: