diff --git a/mold.changes b/mold.changes index 21e01da..fd85105 100644 --- a/mold.changes +++ b/mold.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri May 13 09:31:25 UTC 2022 - Martin Liška + +- Use better CC and TEST_CC variables. + ------------------------------------------------------------------- Fri May 13 09:21:22 UTC 2022 - Martin Liška diff --git a/mold.spec b/mold.spec index d9cd8cf..8599d1d 100644 --- a/mold.spec +++ b/mold.spec @@ -67,9 +67,6 @@ build time especially in rapid debug-edit-rebuild cycles. %if %{suse_version} < 1550 export CC=gcc-10 export CXX=g++-10 -%else -export CC=gcc -export CXX=g++ %endif export CXXFLAGS="%{optflags} -Wno-sign-compare" @@ -93,6 +90,10 @@ LIBEXECDIR=%{_libexecdir} \ %{build_args} %check +%if %{suse_version} < 1550 +export TEST_CC=gcc-10 +export TEST_CXX=g++-10 +%endif make test -k -e \ PREFIX=%{_prefix} \ BINDIR=%{_bindir} \