aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorMateusz MikuĊ‚a <oss@mateuszmikula.dev>2025-07-02 07:30:12 +0200
committerGitHub <noreply@github.com>2025-07-01 22:30:12 -0700
commit2723a6d9928c7ba5d27125e03dff8eaba8661d7f (patch)
tree181178f1ef1f446115e5c4d5657c9656a036b120 /llvm/lib
parent984c78f27d1475390d9564b099a8550ad494dfd7 (diff)
downloadllvm-2723a6d9928c7ba5d27125e03dff8eaba8661d7f.zip
llvm-2723a6d9928c7ba5d27125e03dff8eaba8661d7f.tar.gz
llvm-2723a6d9928c7ba5d27125e03dff8eaba8661d7f.tar.bz2
[LLVM][Cygwin] Enable dynamic linking of libLLVM (#146440)
These changes allow to link everything to shared LLVM library with MSYS2 "Cygwin" toolchain.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/CMakeLists.txt b/llvm/lib/Target/CMakeLists.txt
index 9472288..f5f6f53 100644
--- a/llvm/lib/Target/CMakeLists.txt
+++ b/llvm/lib/Target/CMakeLists.txt
@@ -22,7 +22,7 @@ add_llvm_component_library(LLVMTarget
# When building shared objects for each target there are some internal APIs
# that are used across shared objects which we can't hide.
if (NOT BUILD_SHARED_LIBS AND NOT APPLE AND
- (NOT (WIN32 OR CYGWIN) OR (MINGW AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")) AND
+ (NOT (WIN32 OR CYGWIN) OR ((MINGW OR CYGWIN) AND CMAKE_CXX_COMPILER_ID MATCHES "Clang")) AND
NOT (${CMAKE_SYSTEM_NAME} MATCHES "AIX") AND
NOT DEFINED CMAKE_CXX_VISIBILITY_PRESET)
# Set default visibility to hidden, so we don't export all the Target classes