!54 Support ccache compile to fix build error

From: @starlet-dx 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2024-04-02 08:22:24 +00:00 committed by Gitee
commit 40058b2fe3
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -13,7 +13,7 @@
Name: ocaml
Version: 4.14.1
Release: 1
Release: 2
Summary: OCaml compiler and programming environment
License: LGPL-2.1-only
URL: http://www.ocaml.org
@ -82,9 +82,9 @@ autoconf --force
%build
export CC='gcc'
export CC='ccache gcc'
export AS='as'
test -x "$(type -P gcc | xargs readlink -f)" && export CC="$_"
test -x "$(type -P {ccache,gcc} | xargs readlink -f)" && export CC="$_"
test -x "$(type -P as | xargs readlink -f)" && export AS="$_"
export ASPP="$CC -c"
configure_target=
@ -248,6 +248,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/ocaml/eventlog_metadata
%{_mandir}/man3/*
%changelog
* Tue Apr 02 2024 yaoxin <yao_xin001@hoperun.com> - 4.14.1-2
- Support ccache compile to fix build error
* Fri Feb 2 2024 Jingwiw <wangjingwei@iscas.ac.cn> - 4.14.1-1
- Upgrade version to 4.14.1