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

QMake doesn't use specified spec when running config tests

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.4.0
    • 5.4.0 Alpha
    • Build tools: qmake
    • None

    Description

      When running tests with qtCompileTest(), those tests are always run with the default spec, not with the spec the user explicitly passed to qmake.

      In my case, I have a config test that tests for certain C++14 features, and invoke qmake with "qmake -spec linux-clang". However, the tests are run with the spec Qt was built with, which is linux-g++. Therefore, the tests will fail, even though the C++14 features I wanted to test for are available with linux-clang.

      Attachments

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

        Activity

          People

            tmcguire Thomas McGuire
            tmcguire Thomas McGuire
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes