aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib
diff options
context:
space:
mode:
authorSteven Wu <stevenwu@apple.com>2025-11-11 11:49:45 -0800
committerGitHub <noreply@github.com>2025-11-11 19:49:45 +0000
commitcc5057cc2153924d414aac0d4cc7f08d205cd079 (patch)
treee0bbfcbe22751651ed1e87d45807e866c8c65371 /llvm/lib
parente77001c9f5b5e99d915a2f45f9f067e83def22e1 (diff)
downloadllvm-cc5057cc2153924d414aac0d4cc7f08d205cd079.zip
llvm-cc5057cc2153924d414aac0d4cc7f08d205cd079.tar.gz
llvm-cc5057cc2153924d414aac0d4cc7f08d205cd079.tar.bz2
[CAS] Fix AIX build (#159647)
Fix AIX build by linking `libbsd.a` to include implementation for `flock`.
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CAS/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CAS/CMakeLists.txt b/llvm/lib/CAS/CMakeLists.txt
index aad77dc..b03895c 100644
--- a/llvm/lib/CAS/CMakeLists.txt
+++ b/llvm/lib/CAS/CMakeLists.txt
@@ -1,3 +1,7 @@
+if (UNIX AND "${CMAKE_SYSTEM_NAME}" MATCHES "AIX")
+ set(additional_libs bsd)
+endif()
+
add_llvm_component_library(LLVMCAS
ActionCache.cpp
ActionCaches.cpp
@@ -20,6 +24,7 @@ add_llvm_component_library(LLVMCAS
LINK_LIBS
${LLVM_PTHREAD_LIB}
+ ${additional_libs}
LINK_COMPONENTS
Support