From 161fe72bcbc59a71b9c663289bfa84b3ccaf67dc Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Tue, 21 May 2024 15:59:11 +0200 Subject: [PATCH 1/2] [llvm] applying Floating-Point Numerical Sanitizer patch --- llvm.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llvm.spec b/llvm.spec index 0aa8e47c3ea..06fd0754e72 100644 --- a/llvm.spec +++ b/llvm.spec @@ -13,7 +13,7 @@ Requires: cuda Source0: git+https://github.com/cms-externals/llvm-project.git?obj=%{llvmBranch}/%{llvmCommit}&export=llvm-%{realversion}-%{llvmCommit}&module=llvm-%{realversion}-%{llvmCommit}&output=/llvm-%{realversion}-%{llvmCommit}.tgz Source1: git+https://github.com/include-what-you-use/include-what-you-use.git?obj=%{iwyuBranch}/%{iwyuCommit}&export=iwyu-%{realversion}-%{iwyuCommit}&module=iwyu-%{realversion}-%{iwyuCommit}&output=/iwyu-%{realversion}-%{iwyuCommit}.tgz - +Patch0: https://github.com/llvm/llvm-project/pull/85916.patch %define keep_archives true %prep @@ -26,6 +26,7 @@ sed -ibak '/add_clang_subdirectory(libclang)/a add_subdirectory(include-what-you # move back to the main setup directory %setup -T -D -n llvm-%{realversion}-%{llvmCommit} +%patch0 -p1 %build ## INCLUDE cuda-flags @@ -57,6 +58,7 @@ cmake %{_builddir}/llvm-%{realversion}-%{llvmCommit}/llvm \ ninja -v %{makeprocesses} ninja -v %{makeprocesses} check-clang-tools +ninja -v %{makeprocesses} check-nsan bin/clang-tidy --checks=* --list-checks | grep cms-handle %install From 40209eb31cd46c28e27525624d4c0145d2699ecd Mon Sep 17 00:00:00 2001 From: Malik Shahzad Muzaffar Date: Tue, 21 May 2024 16:25:32 +0200 Subject: [PATCH 2/2] Update llvm.spec --- llvm.spec | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm.spec b/llvm.spec index 06fd0754e72..06dd4d6401a 100644 --- a/llvm.spec +++ b/llvm.spec @@ -13,7 +13,8 @@ Requires: cuda Source0: git+https://github.com/cms-externals/llvm-project.git?obj=%{llvmBranch}/%{llvmCommit}&export=llvm-%{realversion}-%{llvmCommit}&module=llvm-%{realversion}-%{llvmCommit}&output=/llvm-%{realversion}-%{llvmCommit}.tgz Source1: git+https://github.com/include-what-you-use/include-what-you-use.git?obj=%{iwyuBranch}/%{iwyuCommit}&export=iwyu-%{realversion}-%{iwyuCommit}&module=iwyu-%{realversion}-%{iwyuCommit}&output=/iwyu-%{realversion}-%{iwyuCommit}.tgz -Patch0: https://github.com/llvm/llvm-project/pull/85916.patch +Source2: https://patch-diff.githubusercontent.com/raw/llvm/llvm-project/pull/85916.patch + %define keep_archives true %prep @@ -26,7 +27,7 @@ sed -ibak '/add_clang_subdirectory(libclang)/a add_subdirectory(include-what-you # move back to the main setup directory %setup -T -D -n llvm-%{realversion}-%{llvmCommit} -%patch0 -p1 +patch -p1 <%{_sourcedir}/85916.patch %build ## INCLUDE cuda-flags