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

CMake is passing invalid parameter to the linker

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • 6.0.0 Beta1, 6.0.0 Beta2
    • Build System: CMake
    • None
    • Windows
    • 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

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

        Activity

          People

            wangwenx190 赵 宇航
            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