diff --git a/llvm14.spec b/llvm14.spec index 5cec084..7d220a8 100644 --- a/llvm14.spec +++ b/llvm14.spec @@ -659,7 +659,7 @@ mv libcxxabi-%{_version}.src projects/libcxxabi # hardening. The problem is in sanitizers from compiler-rt. # 2) Remove the -g. We don't want it in stage1 and it will be added by cmake in # the following stage. -%global cleaned_flags %(echo %{optflags} | sed 's/-D_FORTIFY_SOURCE=./-D_FORTIFY_SOURCE=0/;s/\B-g\b//g') +%global cleaned_flags %(echo %{optflags} | sed 's/-D_FORTIFY_SOURCE=./-D_FORTIFY_SOURCE=0/;s/\\B-g\\b//g') %global flags %{cleaned_flags} %ifarch armv6hl @@ -1161,8 +1161,10 @@ python3 bin/llvm-lit -sv test/ # On s390x, this test complains that a required pass couldn't be found and then crashes. (FIXME) sed -i '/XFAIL/i// XFAIL: s390x' ../tools/clang/test/CodeGen/sanitize-coverage-old-pm.c +%if 0%{?suse_version} > 1500 # We're not getting the exact crash dump that was expected. Not sure why, input is cut off. sed -i '1i// XFAIL: s390x' ../tools/clang/test/Driver/{crash-{diagnostics-dir.c,report-header.h,report-spaces.c},rewrite-map-in-diagnostics.c} +%endif # On ppc, this test fails with "fatal error: error in backend: Relocation type not implemented yet!" sed -i '/UNSUPPORTED/i// XFAIL: powerpc-' ../tools/clang/test/Interpreter/execute.cpp # Tests hang on armv6l.