mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-27 15:03:59 +00:00
rebase of the patch
This commit is contained in:
parent
eebdfc5729
commit
dc2fa7b52b
54
debian/patches/openmp-fix-runtimes-build.diff
vendored
54
debian/patches/openmp-fix-runtimes-build.diff
vendored
@ -2,10 +2,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
|
they are built first when included as part of a runtimes build since openmp
|
||||||
can depend on them
|
can depend on them
|
||||||
<<<<<<< Updated upstream
|
<<<<<<< Updated upstream
|
||||||
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/runtimes/CMakeLists.txt
|
Index: llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/llvm/runtimes/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/llvm/runtimes/CMakeLists.txt
|
--- llvm-toolchain-snapshot_17~++20230603110125+d072d110227d.orig/llvm/runtimes/CMakeLists.txt
|
||||||
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/runtimes/CMakeLists.txt
|
+++ llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/llvm/runtimes/CMakeLists.txt
|
||||||
@@ -236,6 +236,7 @@ function(runtime_default_target)
|
@@ -236,6 +236,7 @@ function(runtime_default_target)
|
||||||
-DLLVM_ENABLE_PROJECTS_USED=${LLVM_ENABLE_PROJECTS_USED}
|
-DLLVM_ENABLE_PROJECTS_USED=${LLVM_ENABLE_PROJECTS_USED}
|
||||||
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=${LLVM_ENABLE_PER_TARGET_RUNTIME_DIR}
|
-DLLVM_ENABLE_PER_TARGET_RUNTIME_DIR=${LLVM_ENABLE_PER_TARGET_RUNTIME_DIR}
|
||||||
@ -23,11 +23,11 @@ Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/llvm/runtimes/CM
|
|||||||
# We need to add the runtimes as a dependency because compiler-rt can be
|
# 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
|
# built as part of runtimes and we need the profile runtime for PGO
|
||||||
add_dependencies(clang-bootstrap-deps runtimes)
|
add_dependencies(clang-bootstrap-deps runtimes)
|
||||||
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/CMakeLists.txt
|
Index: llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/openmp/CMakeLists.txt
|
--- llvm-toolchain-snapshot_17~++20230603110125+d072d110227d.orig/openmp/CMakeLists.txt
|
||||||
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/CMakeLists.txt
|
+++ llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/CMakeLists.txt
|
||||||
@@ -101,6 +101,28 @@ else()
|
@@ -94,6 +94,28 @@ else()
|
||||||
set(LIBOMP_HEADERS_INSTALL_PATH "${OPENMP_INSTALL_LIBDIR}/clang/${CLANG_VERSION}/include")
|
set(LIBOMP_HEADERS_INSTALL_PATH "${OPENMP_INSTALL_LIBDIR}/clang/${CLANG_VERSION}/include")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -56,10 +56,10 @@ Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/CMakeList
|
|||||||
# Build host runtime library, after LIBOMPTARGET variables are set since they are needed
|
# Build host runtime library, after LIBOMPTARGET variables are set since they are needed
|
||||||
# to enable time profiling support in the OpenMP runtime.
|
# to enable time profiling support in the OpenMP runtime.
|
||||||
add_subdirectory(runtime)
|
add_subdirectory(runtime)
|
||||||
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/libomptarget/plugins/CMakeLists.txt
|
Index: llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/libomptarget/plugins/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/openmp/libomptarget/plugins/CMakeLists.txt
|
--- llvm-toolchain-snapshot_17~++20230603110125+d072d110227d.orig/openmp/libomptarget/plugins/CMakeLists.txt
|
||||||
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/libomptarget/plugins/CMakeLists.txt
|
+++ llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/libomptarget/plugins/CMakeLists.txt
|
||||||
@@ -48,6 +48,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "${tma
|
@@ -48,6 +48,8 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "${tma
|
||||||
NO_INSTALL_RPATH
|
NO_INSTALL_RPATH
|
||||||
)
|
)
|
||||||
@ -69,10 +69,10 @@ Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/libomptar
|
|||||||
# Install plugin under the lib destination folder.
|
# Install plugin under the lib destination folder.
|
||||||
install(TARGETS "omptarget.rtl.${tmachine_libname}"
|
install(TARGETS "omptarget.rtl.${tmachine_libname}"
|
||||||
LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|
LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|
||||||
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
Index: llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
--- llvm-toolchain-snapshot_17~++20230603110125+d072d110227d.orig/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
||||||
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
+++ llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/libomptarget/plugins/cuda/CMakeLists.txt
|
||||||
@@ -55,6 +55,8 @@ endif()
|
@@ -55,6 +55,8 @@ endif()
|
||||||
target_compile_definitions(omptarget.rtl.cuda PRIVATE TARGET_NAME="CUDA")
|
target_compile_definitions(omptarget.rtl.cuda PRIVATE TARGET_NAME="CUDA")
|
||||||
target_include_directories(omptarget.rtl.cuda PRIVATE ${LIBOMPTARGET_INCLUDE_DIR})
|
target_include_directories(omptarget.rtl.cuda PRIVATE ${LIBOMPTARGET_INCLUDE_DIR})
|
||||||
@ -82,10 +82,10 @@ Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/libomptar
|
|||||||
# Install plugin under the lib destination folder.
|
# Install plugin under the lib destination folder.
|
||||||
install(TARGETS omptarget.rtl.cuda LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|
install(TARGETS omptarget.rtl.cuda LIBRARY DESTINATION "${OPENMP_INSTALL_LIBDIR}")
|
||||||
set_target_properties(omptarget.rtl.cuda PROPERTIES
|
set_target_properties(omptarget.rtl.cuda PROPERTIES
|
||||||
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/libomptarget/src/CMakeLists.txt
|
Index: llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/libomptarget/src/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/openmp/libomptarget/src/CMakeLists.txt
|
--- llvm-toolchain-snapshot_17~++20230603110125+d072d110227d.orig/openmp/libomptarget/src/CMakeLists.txt
|
||||||
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/libomptarget/src/CMakeLists.txt
|
+++ llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/libomptarget/src/CMakeLists.txt
|
||||||
@@ -36,7 +36,9 @@ add_llvm_library(omptarget
|
@@ -36,7 +36,9 @@ add_llvm_library(omptarget
|
||||||
omp
|
omp
|
||||||
|
|
||||||
@ -97,10 +97,10 @@ Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/libomptar
|
|||||||
target_include_directories(omptarget PRIVATE ${LIBOMPTARGET_INCLUDE_DIR})
|
target_include_directories(omptarget PRIVATE ${LIBOMPTARGET_INCLUDE_DIR})
|
||||||
|
|
||||||
if (LIBOMP_HAVE_VERSION_SCRIPT_FLAG)
|
if (LIBOMP_HAVE_VERSION_SCRIPT_FLAG)
|
||||||
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/runtime/CMakeLists.txt
|
Index: llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/runtime/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/openmp/runtime/CMakeLists.txt
|
--- llvm-toolchain-snapshot_17~++20230603110125+d072d110227d.orig/openmp/runtime/CMakeLists.txt
|
||||||
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/runtime/CMakeLists.txt
|
+++ llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/runtime/CMakeLists.txt
|
||||||
@@ -292,6 +292,10 @@ if(LIBOMP_STATS)
|
@@ -292,6 +292,10 @@ if(LIBOMP_STATS)
|
||||||
set(LIBOMP_USE_STDCPPLIB TRUE)
|
set(LIBOMP_USE_STDCPPLIB TRUE)
|
||||||
endif()
|
endif()
|
||||||
@ -112,11 +112,11 @@ Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/runtime/C
|
|||||||
# Shared library can be switched to a static library
|
# Shared library can be switched to a static library
|
||||||
set(LIBOMP_ENABLE_SHARED TRUE CACHE BOOL
|
set(LIBOMP_ENABLE_SHARED TRUE CACHE BOOL
|
||||||
"Shared library instead of static library?")
|
"Shared library instead of static library?")
|
||||||
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/runtime/src/CMakeLists.txt
|
Index: llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/runtime/src/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/openmp/runtime/src/CMakeLists.txt
|
--- llvm-toolchain-snapshot_17~++20230603110125+d072d110227d.orig/openmp/runtime/src/CMakeLists.txt
|
||||||
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/runtime/src/CMakeLists.txt
|
+++ llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/runtime/src/CMakeLists.txt
|
||||||
@@ -141,6 +141,7 @@ set_source_files_properties(${LIBOMP_GNU
|
@@ -139,6 +139,7 @@ set_source_files_properties(${LIBOMP_ASM
|
||||||
if(NOT ${LIBOMP_USE_STDCPPLIB})
|
if(NOT ${LIBOMP_USE_STDCPPLIB})
|
||||||
set(LIBOMP_LINKER_LANGUAGE C)
|
set(LIBOMP_LINKER_LANGUAGE C)
|
||||||
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES)
|
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES)
|
||||||
@ -124,7 +124,7 @@ Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/runtime/s
|
|||||||
else()
|
else()
|
||||||
set(LIBOMP_LINKER_LANGUAGE CXX)
|
set(LIBOMP_LINKER_LANGUAGE CXX)
|
||||||
endif()
|
endif()
|
||||||
@@ -202,6 +203,8 @@ else()
|
@@ -200,6 +201,8 @@ else()
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -133,10 +133,10 @@ Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/runtime/s
|
|||||||
# Get the library's location within the build tree for the unit tester
|
# Get the library's location within the build tree for the unit tester
|
||||||
if(NOT WIN32)
|
if(NOT WIN32)
|
||||||
get_target_property(LIBOMP_LIBRARY_DIR omp LIBRARY_OUTPUT_DIRECTORY)
|
get_target_property(LIBOMP_LIBRARY_DIR omp LIBRARY_OUTPUT_DIRECTORY)
|
||||||
Index: llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/tools/archer/CMakeLists.txt
|
Index: llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/tools/archer/CMakeLists.txt
|
||||||
===================================================================
|
===================================================================
|
||||||
--- llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79.orig/openmp/tools/archer/CMakeLists.txt
|
--- llvm-toolchain-snapshot_17~++20230603110125+d072d110227d.orig/openmp/tools/archer/CMakeLists.txt
|
||||||
+++ llvm-toolchain-snapshot_17~++20230523093327+96a003b9bf79/openmp/tools/archer/CMakeLists.txt
|
+++ llvm-toolchain-snapshot_17~++20230603110125+d072d110227d/openmp/tools/archer/CMakeLists.txt
|
||||||
@@ -15,6 +15,9 @@ if(LIBOMP_OMPT_SUPPORT AND LIBOMP_ARCHER
|
@@ -15,6 +15,9 @@ if(LIBOMP_OMPT_SUPPORT AND LIBOMP_ARCHER
|
||||||
target_link_libraries(archer ${CMAKE_DL_LIBS})
|
target_link_libraries(archer ${CMAKE_DL_LIBS})
|
||||||
add_library(archer_static STATIC ompt-tsan.cpp)
|
add_library(archer_static STATIC ompt-tsan.cpp)
|
||||||
|
Loading…
Reference in New Issue
Block a user