public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/catch] f45: Drop use of -ffile-prefix-map for RISC-V compatibility
@ 2026-09-02 21:21 Tom Hughes
0 siblings, 0 replies; only message in thread
From: Tom Hughes @ 2026-09-02 21:21 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/catch
Branch : f45
Commit : d7d66a61f30e76aded42276aee46027f8ff74f48
Author : Tom Hughes <tom@compton.nu>
Date : 2026-09-02T18:38:01+01:00
Stats : +30/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/catch/c/d7d66a61f30e76aded42276aee46027f8ff74f48?branch=f45
Log:
Drop use of -ffile-prefix-map for RISC-V compatibility
---
diff --git a/catch.spec b/catch.spec
index 20948e5..2424f9f 100644
--- a/catch.spec
+++ b/catch.spec
@@ -6,6 +6,8 @@ Summary: Modern, C++-native, header-only, framework for unit-tests, TDD a
License: BSL-1.0
URL: https://github.com/catchorg/Catch2
Source: https://github.com/catchorg/Catch2/archive/v%{version}/Catch2-%{version}.tar.gz
+# https://github.com/catchorg/Catch2/issues/3198
+Patch: file-prefix-map.patch
BuildRequires: cmake
BuildRequires: gcc-c++
diff --git a/file-prefix-map.patch b/file-prefix-map.patch
new file mode 100644
index 0000000..2524556
--- /dev/null
+++ b/file-prefix-map.patch
@@ -0,0 +1,28 @@
+From afa021f7820f03a15c0f39da197129addbd5b93d Mon Sep 17 00:00:00 2001
+From: Tom Hughes <tom@compton.nu>
+Date: Wed, 2 Sep 2026 18:36:36 +0100
+Subject: [PATCH] Drop use of -ffile-prefix-map
+
+https://github.com/catchorg/Catch2/issues/3198
+---
+ CMake/CatchMiscFunctions.cmake | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/CMake/CatchMiscFunctions.cmake b/CMake/CatchMiscFunctions.cmake
+index d1cf5fc2..47f6f4bf 100644
+--- a/CMake/CatchMiscFunctions.cmake
++++ b/CMake/CatchMiscFunctions.cmake
+@@ -115,7 +115,7 @@ endfunction()
+ # Currently only supports GCC and Clang
+ function(add_build_reproducibility_settings target)
+ # Make the build reproducible on versions of g++ and clang that supports -ffile-prefix-map
+- if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
+- add_cxx_flag_if_supported_to_targets("-ffile-prefix-map=${CATCH_DIR}/=" "${target}")
+- endif()
++ #if((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
++ # add_cxx_flag_if_supported_to_targets("-ffile-prefix-map=${CATCH_DIR}/=" "${target}")
++ #endif()
+ endfunction()
+--
+2.55.0
+
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-02 21:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-02 21:21 [rpms/catch] f45: Drop use of -ffile-prefix-map for RISC-V compatibility Tom Hughes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox