Compare commits

2 Commits

Author SHA1 Message Date
c32e986aa3 When building tests, patch out builds for C++14
These cause issues with later versions of gtest wich
require at least C++17.

Signed-off-by: Egbert Eich <eich@suse.com>
2025-08-18 13:52:24 +02:00
adbb2deb48 On SUSE don't change %debug_package macro
Signed-off-by: Egbert Eich <eich@suse.com>
2025-08-18 08:42:54 +02:00
2 changed files with 9 additions and 1 deletions

Binary file not shown.

View File

@@ -7,7 +7,7 @@
# hipcc does not support some clang flags
%global build_cxxflags %(echo %{optflags} | sed -e 's/-fstack-protector-strong/-Xarch_host -fstack-protector-strong/' -e 's/-fcf-protection/-Xarch_host -fcf-protection/' -e 's/-mtls-dialect=gnu2//')
# there is no debug package
%global debug_package %{nil}
%{!?suse_version:%global debug_package %{nil}}
# Option to test suite for testing on real HW during build
%bcond_with check
@@ -83,6 +83,9 @@ tests for the rocPRIM package
%prep
%autosetup -p1 -n %{upstreamname}-rocm-%{version}
%if %{with test}
sed -i -e '/add_rocprim_cpp_standard_test.14/s@^@#@' test/rocprim//CMakeLists.txt
%endif
%build
@@ -145,6 +148,11 @@ sed -i -e 's@\.\.@\/usr\/bin@' %{buildroot}%{_bindir}/%{name}/CTestTestfile.cmak
%changelog
* Thu Aug 14 2025 Egbert Eich <eich@suse.com> - 6.4.2-4
- On SUSE don't change debug_package macro.
- When building tests, patch out builds for C++14 as
newer versions of getest require at least C++17.
* Tue Jul 29 2025 Tom Rix <Tom.Rix@amd.com> - 6.4.2-3
- Remove -mtls-dialect cflag