Skip to content

Commit

Permalink
[OpenMP] Fix multiply installing libomp.so (llvm#93685)
Browse files Browse the repository at this point in the history
Summary:
The `add_llvm_library` interface handles installing the llvm libraries,
however we want to do our own handling. Otherwise, this will install
into the `./lib` location instead of the `./lib/<target>` one.
  • Loading branch information
jhuber6 authored May 29, 2024
1 parent 753ac47 commit df9701b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openmp/runtime/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ else()
add_llvm_library(omp ${LIBOMP_LIBRARY_KIND} ${LIBOMP_SOURCE_FILES} PARTIAL_SOURCES_INTENDED
LINK_LIBS ${LIBOMP_CONFIGURED_LIBFLAGS} ${LIBOMP_DL_LIBS}
LINK_COMPONENTS Support
BUILDTREE_ONLY
)
# libomp must be a C++ library such that it can link libLLVMSupport
set(LIBOMP_LINKER_LANGUAGE CXX)
Expand Down

0 comments on commit df9701b

Please sign in to comment.