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

CMake is passing invalid parameter to the linker

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.0.0 Beta1, 6.0.0 Beta2
    • Fix Version/s: None
    • Component/s: Build System: CMake
    • Labels:
      None
    • Platform/s:
      Windows
    • Commits:
      bbeca236b54aa42b343b717d5039dc6bd02340ce (qt/qtbase/dev)

      Description

      When using MSVC, the linker gives many warning messages saying that it doesn't recognize the "/INCREMENTAL:NO" parameter when it's linking static libraries.
      When using clang-cl, the linker just error out saying that there is no file named "/INCREMENTAL:NO" when it's linking static libraries.

      It only happens when the linker is linking static libraries, everything is fine when it's linking shared libraries and executables.

      To be clear: I'm not building a static version of Qt, it's Qt's own static libraries.

        Attachments

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

          Activity

            People

            Assignee:
            wangwenx190 赵 宇航
            Reporter:
            wangwenx190 赵 宇航
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes