- Use better CC and TEST_CC variables.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=38
This commit is contained in:
Martin Liška 2022-05-13 09:31:45 +00:00 committed by Git OBS Bridge
parent 9b47313083
commit 780232e176
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri May 13 09:31:25 UTC 2022 - Martin Liška <mliska@suse.cz>
- Use better CC and TEST_CC variables.
-------------------------------------------------------------------
Fri May 13 09:21:22 UTC 2022 - Martin Liška <mliska@suse.cz>

View File

@ -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} \