Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-3934

Investigate how to fix usage of Sccache for Windows Ninja Multi Config MSVC builds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: master
    • Fix Version/s: None
    • Labels:
    • Platform/s:
      Windows

      Description

      As per https://codereview.qt-project.org/c/qt/qt5/+/232218/62/coin/platform_configs/cmake_platforms.yaml#25

      and
      https://github.com/mozilla/sccache/issues/242

      it appears sccache can't deal with MSVC debug builds that put the debug information into a separate pdb file.

      This prevents us from enabling Sccache for caching build artifacts for Windows.

      We should investigate if it's possible to fix ccache upstream, or there is some workaround we can use.

      One proposed workaround is to switch from /Zi to /Z7 to keep the debug info in object files, and then separate it out into pdb files, similar to how it's done for macOS / Linux with --separate-debug-info.

      Reference flags: https://docs.microsoft.com/en-us/cpp/build/reference/z7-zi-zi-debug-information-format?view=vs-2019

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              alexandru.croitor Alexandru Croitor
              Reporter:
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes