Skip to content

Commit 1324dfe

Browse files
authored
[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.
1 parent 2bf7018 commit 1324dfe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,6 +1189,7 @@ endif()
11891189
if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
11901190
add_compile_definitions(_XOPEN_SOURCE=700)
11911191
add_compile_definitions(_LARGE_FILE_API)
1192+
add_compile_options(-pthread)
11921193

11931194
# Modules should be built with -shared -Wl,-G, so we can use runtime linking
11941195
# with plugins.

0 commit comments

Comments
 (0)