mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-08-02 17:10:17 +00:00
rebase of the patches
This commit is contained in:
parent
440420db5e
commit
49661aa2d9
52
debian/patches/openmp-fix-runtimes-build.diff
vendored
52
debian/patches/openmp-fix-runtimes-build.diff
vendored
@ -1,10 +1,10 @@
|
||||
include required runtimes as dependencies to openmp targets to make sure
|
||||
they are built first when included as part of a runtimes build since openmp
|
||||
can depend on them
|
||||
Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/llvm/runtimes/CMakeLists.txt
|
||||
Index: llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/llvm/runtimes/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot_17~++20230126021740+85395af27241.orig/llvm/runtimes/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230126021740+85395af27241/llvm/runtimes/CMakeLists.txt
|
||||
--- llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8.orig/llvm/runtimes/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/llvm/runtimes/CMakeLists.txt
|
||||
@@ -233,6 +233,7 @@ function(runtime_default_target)
|
||||
-DLLVM_ENABLE_PROJECTS_USED=${LLVM_ENABLE_PROJECTS_USED}
|
||||
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=${LLVM_ENABLE_PER_TARGET_RUNTIME_DIR_default}
|
||||
@ -22,10 +22,10 @@ Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/llvm/runtimes/CM
|
||||
# We need to add the runtimes as a dependency because compiler-rt can be
|
||||
# built as part of runtimes and we need the profile runtime for PGO
|
||||
add_dependencies(clang-bootstrap-deps runtimes)
|
||||
Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/CMakeLists.txt
|
||||
Index: llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot_17~++20230126021740+85395af27241.orig/openmp/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/CMakeLists.txt
|
||||
--- llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8.orig/openmp/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/CMakeLists.txt
|
||||
@@ -91,6 +91,28 @@ else()
|
||||
set(LIBOMP_HEADERS_INSTALL_PATH "${OPENMP_INSTALL_LIBDIR}/clang/${CLANG_VERSION}/include")
|
||||
endif()
|
||||
@ -55,10 +55,10 @@ Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/CMakeList
|
||||
# Build host runtime library, after LIBOMPTARGET variables are set since they are needed
|
||||
# to enable time profiling support in the OpenMP runtime.
|
||||
add_subdirectory(runtime)
|
||||
Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/libomptarget/plugins/CMakeLists.txt
|
||||
Index: llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/libomptarget/plugins/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot_17~++20230126021740+85395af27241.orig/openmp/libomptarget/plugins/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/libomptarget/plugins/CMakeLists.txt
|
||||
--- llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8.orig/openmp/libomptarget/plugins/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/libomptarget/plugins/CMakeLists.txt
|
||||
@@ -48,6 +48,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "${tma
|
||||
NO_INSTALL_RPATH
|
||||
)
|
||||
@ -68,10 +68,10 @@ Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/libomptar
|
||||
# Install plugin under the lib destination folder.
|
||||
install(TARGETS "omptarget.rtl.${tmachine_libname}"
|
||||
LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|
||||
Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
||||
Index: llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot_17~++20230126021740+85395af27241.orig/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
||||
--- llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8.orig/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
||||
@@ -56,6 +56,8 @@ add_dependencies(omptarget.rtl.cuda ompt
|
||||
target_compile_definitions(omptarget.rtl.cuda PRIVATE TARGET_NAME="CUDA")
|
||||
target_include_directories(omptarget.rtl.cuda PRIVATE ${LIBOMPTARGET_INCLUDE_DIR})
|
||||
@ -81,10 +81,10 @@ Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/libomptar
|
||||
# Install plugin under the lib destination folder.
|
||||
install(TARGETS omptarget.rtl.cuda LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|
||||
set_target_properties(omptarget.rtl.cuda PROPERTIES
|
||||
Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/libomptarget/src/CMakeLists.txt
|
||||
Index: llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/libomptarget/src/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot_17~++20230126021740+85395af27241.orig/openmp/libomptarget/src/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/libomptarget/src/CMakeLists.txt
|
||||
--- llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8.orig/openmp/libomptarget/src/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/libomptarget/src/CMakeLists.txt
|
||||
@@ -35,7 +35,9 @@ add_llvm_library(omptarget
|
||||
PRIVATE
|
||||
"-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exports"
|
||||
@ -96,10 +96,10 @@ Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/libomptar
|
||||
target_include_directories(omptarget PRIVATE ${LIBOMPTARGET_INCLUDE_DIR})
|
||||
|
||||
# libomptarget.so needs to be aware of where the plugins live as they
|
||||
Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/runtime/CMakeLists.txt
|
||||
Index: llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/runtime/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot_17~++20230126021740+85395af27241.orig/openmp/runtime/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/runtime/CMakeLists.txt
|
||||
--- llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8.orig/openmp/runtime/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/runtime/CMakeLists.txt
|
||||
@@ -292,6 +292,10 @@ if(LIBOMP_STATS)
|
||||
set(LIBOMP_USE_STDCPPLIB TRUE)
|
||||
endif()
|
||||
@ -111,10 +111,10 @@ Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/runtime/C
|
||||
# Shared library can be switched to a static library
|
||||
set(LIBOMP_ENABLE_SHARED TRUE CACHE BOOL
|
||||
"Shared library instead of static library?")
|
||||
Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/runtime/src/CMakeLists.txt
|
||||
Index: llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/runtime/src/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot_17~++20230126021740+85395af27241.orig/openmp/runtime/src/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/runtime/src/CMakeLists.txt
|
||||
--- llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8.orig/openmp/runtime/src/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/runtime/src/CMakeLists.txt
|
||||
@@ -140,6 +140,7 @@ set_source_files_properties(${LIBOMP_GNU
|
||||
if(NOT ${LIBOMP_USE_STDCPPLIB})
|
||||
set(LIBOMP_LINKER_LANGUAGE C)
|
||||
@ -132,12 +132,12 @@ Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/runtime/s
|
||||
# Get the library's location within the build tree for the unit tester
|
||||
if(NOT WIN32)
|
||||
get_target_property(LIBOMP_LIBRARY_DIR omp LIBRARY_OUTPUT_DIRECTORY)
|
||||
Index: llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/tools/archer/CMakeLists.txt
|
||||
Index: llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/tools/archer/CMakeLists.txt
|
||||
===================================================================
|
||||
--- llvm-toolchain-snapshot_17~++20230126021740+85395af27241.orig/openmp/tools/archer/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230126021740+85395af27241/openmp/tools/archer/CMakeLists.txt
|
||||
@@ -14,6 +14,9 @@ if(LIBOMP_OMPT_SUPPORT)
|
||||
add_library(archer SHARED ompt-tsan.cpp)
|
||||
--- llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8.orig/openmp/tools/archer/CMakeLists.txt
|
||||
+++ llvm-toolchain-snapshot_17~++20230127091052+435225c6e2f8/openmp/tools/archer/CMakeLists.txt
|
||||
@@ -15,6 +15,9 @@ if(LIBOMP_OMPT_SUPPORT)
|
||||
target_link_libraries(archer ${CMAKE_DL_LIBS})
|
||||
add_library(archer_static STATIC ompt-tsan.cpp)
|
||||
|
||||
+ add_runtimes_build_depends_if_needed(archer)
|
||||
|
Loading…
Reference in New Issue
Block a user