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

QMake doesn't use specified spec when running config tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.4.0 Alpha
    • Fix Version/s: 5.4.0
    • Component/s: Build tools: qmake
    • Labels:
      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

            • Assignee:
              tmcguire Thomas McGuire
              Reporter:
              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