diff --git a/debian/patches/compilerrt-fix-warn-xray-testing.diff b/debian/patches/compilerrt-fix-warn-xray-testing.diff index 645e7f88..38babc96 100644 --- a/debian/patches/compilerrt-fix-warn-xray-testing.diff +++ b/debian/patches/compilerrt-fix-warn-xray-testing.diff @@ -1,3 +1,4 @@ +suppress warnings for xray and testing when not enabled Index: llvm-toolchain-12_12.0.1/compiler-rt/cmake/Modules/CompilerRTUtils.cmake =================================================================== --- llvm-toolchain-12_12.0.1.orig/compiler-rt/cmake/Modules/CompilerRTUtils.cmake diff --git a/debian/patches/libclc-fix-prepare_builtins-rpath.diff b/debian/patches/libclc-fix-prepare_builtins-rpath.diff index ac88169a..c1f87571 100644 --- a/debian/patches/libclc-fix-prepare_builtins-rpath.diff +++ b/debian/patches/libclc-fix-prepare_builtins-rpath.diff @@ -1,3 +1,5 @@ +set rpath for prepare_builtins build utility to find correct stage2 +libs at runtime when executed as part of a build Index: llvm-toolchain-12_12.0.1/libclc/CMakeLists.txt =================================================================== --- llvm-toolchain-12_12.0.1.orig/libclc/CMakeLists.txt diff --git a/debian/patches/libcxx-libatomic-only-with-gcc-rtlib.diff b/debian/patches/libcxx-libatomic-only-with-gcc-rtlib.diff index f91624df..41662966 100644 --- a/debian/patches/libcxx-libatomic-only-with-gcc-rtlib.diff +++ b/debian/patches/libcxx-libatomic-only-with-gcc-rtlib.diff @@ -1,3 +1,4 @@ +if libatomic is found only link it if libgcc is the rtlib Index: llvm-toolchain-12_12.0.1/libcxx/CMakeLists.txt =================================================================== --- llvm-toolchain-12_12.0.1.orig/libcxx/CMakeLists.txt diff --git a/debian/patches/llvm-fix-lld-linker-check.diff b/debian/patches/llvm-fix-lld-linker-check.diff index ee006e1d..bad28992 100644 --- a/debian/patches/llvm-fix-lld-linker-check.diff +++ b/debian/patches/llvm-fix-lld-linker-check.diff @@ -1,3 +1,5 @@ +remove regex anchor in lld linker detection to account for vendor, if +specified, being prepended to lld version string Index: llvm-toolchain-12_12.0.1/llvm/cmake/modules/AddLLVM.cmake =================================================================== --- llvm-toolchain-12_12.0.1.orig/llvm/cmake/modules/AddLLVM.cmake diff --git a/debian/patches/openmp-fix-runtimes-build.diff b/debian/patches/openmp-fix-runtimes-build.diff index 45499bbf..b8d20cd0 100644 --- a/debian/patches/openmp-fix-runtimes-build.diff +++ b/debian/patches/openmp-fix-runtimes-build.diff @@ -1,3 +1,6 @@ +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-12_12.0.1/llvm/runtimes/CMakeLists.txt =================================================================== --- llvm-toolchain-12_12.0.1.orig/llvm/runtimes/CMakeLists.txt