We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa52a54 commit 7551787Copy full SHA for 7551787
llvm/cmake/modules/HandleLLVMOptions.cmake
@@ -1320,6 +1320,13 @@ if(LLVM_LINK_LLVM_DYLIB AND LLVM_EXPORT_SYMBOLS_FOR_PLUGINS)
1320
message(FATAL_ERROR "LLVM_LINK_LLVM_DYLIB not compatible with LLVM_EXPORT_SYMBOLS_FOR_PLUGINS")
1321
endif()
1322
1323
+#The shared libs build for Linux on PowerPC requires -lpthread
1324
+if(BUILD_SHARED_LIBS AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND LLVM_HOST_TRIPLE MATCHES "powerpc*")
1325
+ append("-lpthread"
1326
+ CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS)
1327
+endif()
1328
+
1329
1330
# By default we should enable LLVM_ENABLE_IDE only for multi-configuration
1331
# generators. This option disables optional build system features that make IDEs
1332
# less usable.
0 commit comments