Remove march=native which isn't supported by older LLVM on some archs.

This commit is contained in:
Troy Curtis Jr 2023-01-16 20:24:02 -05:00
parent 7469b900fa
commit 2f1d93eafc
1 changed files with 3 additions and 0 deletions

View File

@ -65,6 +65,9 @@ Provides: %{name}-static = %{version}
%autosetup -p1
# Change the group name, mainly so that the manpage is named meaningfully
sed -i 's/defgroup Fuzz Fuzz/defgroup rapidfuzz rapidfuzz/' rapidfuzz/fuzz.hpp
# The older LLVM (like in < Fedora 36) doesn't support march=native on some
# architectures.
sed -i 's/ -march=native//' fuzzing/CMakeLists.txt
# Enable man generation, but don't enable the links since it produces files
# which aren't named specifically for rapidfuzz, such as "ratio" and
# "partial_ratio".