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

Qt CMake content uses compiler config from qtbase, instead the current modules

    XMLWordPrintable

Details

    • e3af89f7b (dev), 0bdad95d0 (6.9)

    Description

      Steps to reproduce:

      1. build qtbase with one compiler (e.g. Clang)
      2. build another module with another compiler (e.g. GCC)

      Our modules insert options relating to the wrong compiler.

      For the combination above, for example:

      /home/tjmaciei/bin/c++ -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_NO_DEBUG -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_NO_QASCONST -DQT_NO_QEXCHANGE -DQT_NO_QSNPRINTF -DQT_NO_STD_FORMAT_SUPPORT -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DSPIRV_CROSS_C_API_GLSL=1 -DSPIRV_CROSS_C_API_HLSL=1 -DSPIRV_CROSS_C_API_MSL=1 -D_GLIBCXX_ASSERTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/home/tjmaciei/obj/qt/qt6-clang/qtshadertools/src/SPIRV-Cross/BundledSpirv_Cross_autogen/include -isystem /home/tjmaciei/obj/qt/qt6-clang/qtbase/mkspecs/linux-clang -isystem /home/tjmaciei/obj/qt/qt6-clang/qtbase/include -std=gnu++20 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -w -Werror "-Wno-error=#warnings" -Wno-error=deprecated-declarations -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-copy-with-user-provided-copy -Wno-error=unused-but-set-variable -U_FORTIFY_SOURCE -fcf-protection=full -D_FORTIFY_SOURCE=3 -ftrivial-auto-var-init=pattern -fstack-protector-strong -fexceptions -MD -MT src/SPIRV-Cross/CMakeFiles/BundledSpirv_Cross.dir/BundledSpirv_Cross_autogen/mocs_compilation.cpp.o -MF src/SPIRV-Cross/CMakeFiles/BundledSpirv_Cross.dir/BundledSpirv_Cross_autogen/mocs_compilation.cpp.o.d -o src/SPIRV-Cross/CMakeFiles/BundledSpirv_Cross.dir/BundledSpirv_Cross_autogen/mocs_compilation.cpp.o -c /home/tjmaciei/obj/qt/qt6-clang/qtshadertools/src/SPIRV-Cross/BundledSpirv_Cross_autogen/mocs_compilation.cpp
      cc1plus: error: ‘-Wno-error=#warnings’: no option ‘-W#warnings’; did you mean ‘--no-warnings’?
      cc1plus: error: ‘-Wno-error=deprecated-copy-with-user-provided-copy’: no option ‘-Wdeprecated-copy-with-user-provided-copy’
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-132705
          # Subject Branch Project Status CR V

          Activity

            People

              lecris Cristian Le
              thiago Thiago Macieira
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes