From 3dd776ccfdd52271dc32db2b7495ec3c7449aa22 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 3 May 2021 14:35:54 -0400 Subject: Windows-Clang: Support duplicate object names in LTO archives Update the archive rules added by commit 6e3655db2c (Clang: add LTO support for GNU-command line clang on windows, 2019-07-08, v3.16.0-rc1~161^2~3) to match the `ar` convention we use for normal archives. Issue: #21988 --- Modules/Platform/Windows-Clang.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Platform/Windows-Clang.cmake b/Modules/Platform/Windows-Clang.cmake index 7365ff5..373be76 100644 --- a/Modules/Platform/Windows-Clang.cmake +++ b/Modules/Platform/Windows-Clang.cmake @@ -57,8 +57,8 @@ macro(__windows_compiler_clang_gnu lang) set(CMAKE_${lang}_COMPILE_OPTIONS_IPO "-flto") set(_CMAKE_${lang}_IPO_SUPPORTED_BY_CMAKE YES) set(_CMAKE_${lang}_IPO_MAY_BE_SUPPORTED_BY_COMPILER YES) - set(CMAKE_${lang}_ARCHIVE_CREATE_IPO " cr ") - set(CMAKE_${lang}_ARCHIVE_APPEND_IPO " r ") + set(CMAKE_${lang}_ARCHIVE_CREATE_IPO " qc ") + set(CMAKE_${lang}_ARCHIVE_APPEND_IPO " q ") set(CMAKE_${lang}_ARCHIVE_FINISH_IPO " ") # Create archiving rules to support large object file lists for static libraries. -- cgit v0.12