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

qmake overrides my standard version switch for stock mingw builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.9.0, 5.9.1, 5.9.2, 5.9.3
    • Build tools: qmake
    • None
    • Windows with MinGW 5.3.0 from the installer

      I tried looking for help on the forum, but I had no luck: https://forum.qt.io/topic/80005/how-to-prevent-mingw-qt-5-9-kit-from-adding-std-gnu-11-14-1z-to-compile-flags

      Despite setting CONFIG -= c++11 and/or CONFIG -= c++14 (also tried with 17), -std=gnu+11 is always added to the compilation flags.

      If I set QMAKE_CXXFLAGS += -std=c++14, it is added, but before the unwanted flag, and is thus overridden. Because of this bug, I cannot compile my code using polymorphic lambdas or something as simple as std::make_unique.

      The following test project works with Qt 5.6-5.8, but not with 5.9 https://github.com/KrzaQ/59test

       

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

            buddenha Oswald Buddenhagen
            krzaq Paweł Zakrzewski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes