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

CMake XCode generator is 10x slower than qmake xcode generator

    XMLWordPrintable

Details

    • iOS/tvOS/watchOS, macOS

    Description

      qmake

      ❯ time ../../qtbase/bin/qmake ~/dev/qt/qtdeclarative/examples/quick/animation/ -spec macx-xcode
      Info: creating stash file /Users/torarne/build/qt/6.x/examples/animations-qmake/.qmake.stash
      ../../qtbase/bin/qmake ~/dev/qt/qtdeclarative/examples/quick/animation/ -spec  0.21s user 0.16s system 51% cpu 0.721 total 

      CMake

      ❯ time ../../qtbase/bin/qt-cmake ~/dev/qt/qtdeclarative/examples/quick/animation/ -GXcode
      -- The CXX compiler identification is AppleClang 15.0.0.15000309
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
      -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
      -- Found Threads: TRUE
      -- Performing Test HAVE_STDATOMIC
      -- Performing Test HAVE_STDATOMIC - Success
      -- Found WrapAtomic: TRUE
      -- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/System/Library/Frameworks/OpenGL.framework
      -- Found WrapOpenGL: TRUE
      CMake Warning (dev) at /Users/torarne/build/qt/6.x/qtbase/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:3339 (message):
        Qt policy QTP0004 is not set: You need qmldir files for each extra
        directory that contains .qml files for your module.  Check
        https://doc.qt.io/qt-6/qt-cmake-policy-qtp0004.html for policy details.
        Use the qt_policy command to set the policy and suppress this warning.Call Stack (most recent call first):
        /Users/torarne/build/qt/6.x/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:3088 (__qt_internal_setup_policy)
        /Users/torarne/build/qt/6.x/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:813 (qt6_target_qml_sources)
        /Users/torarne/build/qt/6.x/qtbase/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:1031 (qt6_add_qml_module)
        CMakeLists.txt:28 (qt_add_qml_module)
      This warning is for project developers.  Use -Wno-dev to suppress it.-- Configuring done (8.9s)
      -- Generating done (0.0s)
      -- Build files have been written to: /Users/torarne/build/qt/6.x/examples/animations-cmake
      ../../qtbase/bin/qt-cmake ~/dev/qt/qtdeclarative/examples/quick/animation/   2.24s user 1.28s system 38% cpu 9.213 total 

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              vestbo Tor Arne Vestbø
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes