[llvm] 1324dfe - [AIX] Add -pthread to build on AIX (#129108)

via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 11 09:33:18 PDT 2025


Author: Mark Danial
Date: 2025-03-11T12:33:15-04:00
New Revision: 1324dfe3e177fcfcb116bfc4371d8dd8730f2439

URL: https://github.com/llvm/llvm-project/commit/1324dfe3e177fcfcb116bfc4371d8dd8730f2439
DIFF: https://github.com/llvm/llvm-project/commit/1324dfe3e177fcfcb116bfc4371d8dd8730f2439.diff

LOG: [AIX] Add -pthread to build on AIX (#129108)

When building in tree clang without having `-pthread` we get a bunch of
`Assertion failed: FD != kInvalidFile && "Invalid or inactive file
descriptor"` when testing check-clang.

Added: 
    

Modified: 
    llvm/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/CMakeLists.txt b/llvm/CMakeLists.txt
index 9a5cd1d985886..c5d3e23a47f0e 100644
--- a/llvm/CMakeLists.txt
+++ b/llvm/CMakeLists.txt
@@ -1189,6 +1189,7 @@ endif()
 if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
           add_compile_definitions(_XOPEN_SOURCE=700)
           add_compile_definitions(_LARGE_FILE_API)
+          add_compile_options(-pthread)
 
   # Modules should be built with -shared -Wl,-G, so we can use runtime linking
   # with plugins.


        


More information about the llvm-commits mailing list