diff options
| author | Steven Wu <stevenwu@apple.com> | 2025-11-11 11:49:45 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-11 19:49:45 +0000 |
| commit | cc5057cc2153924d414aac0d4cc7f08d205cd079 (patch) | |
| tree | e0bbfcbe22751651ed1e87d45807e866c8c65371 /llvm/lib | |
| parent | e77001c9f5b5e99d915a2f45f9f067e83def22e1 (diff) | |
| download | llvm-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.txt | 5 |
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 |
