[PATCH] D151946: [CMake] Add /winsysroot to lld-link when LLVM_WINSYSROOT is specified
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 09:59:13 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9efbb67939bd: [CMake] Add /winsysroot to lld-link when LLVM_WINSYSROOT is specified (authored by aeubanks).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151946/new/
https://reviews.llvm.org/D151946
Files:
llvm/cmake/modules/HandleLLVMOptions.cmake
Index: llvm/cmake/modules/HandleLLVMOptions.cmake
===================================================================
--- llvm/cmake/modules/HandleLLVMOptions.cmake
+++ llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -494,6 +494,11 @@
message(ERROR "LLVM_WINSYSROOT requires clang-cl")
endif()
append("/winsysroot${LLVM_WINSYSROOT}" CMAKE_C_FLAGS CMAKE_CXX_FLAGS)
+ if (LINKER_IS_LLD_LINK)
+ append("/winsysroot:${LLVM_WINSYSROOT}"
+ CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS
+ CMAKE_SHARED_LINKER_FLAGS)
+ endif()
endif()
if (LLVM_ENABLE_WERROR)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151946.537403.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230705/3be8078f/attachment.bin>
More information about the llvm-commits
mailing list