[Build] Optimize building time

- gcc.spec: Disable bootstrap to reduce building time
This commit is contained in:
eastb233 2021-05-28 21:14:28 +08:00
parent 5998f6e6a7
commit db04e724dd

View File

@ -1,4 +1,4 @@
%global DATE 20210428 %global DATE 20210528
%global gcc_version 9.3.1 %global gcc_version 9.3.1
%global gcc_major 9.3.1 %global gcc_major 9.3.1
@ -59,7 +59,7 @@
Summary: Various compilers (C, C++, Objective-C, ...) Summary: Various compilers (C, C++, Objective-C, ...)
Name: gcc Name: gcc
Version: %{gcc_version} Version: %{gcc_version}
Release: %{DATE}.19 Release: %{DATE}.20
License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
URL: https://gcc.gnu.org URL: https://gcc.gnu.org
@ -868,7 +868,7 @@ CC="$CC" CFLAGS="$OPT_FLAGS" \
--enable-initfini-array --disable-libgcj --without-isl --without-cloog \ --enable-initfini-array --disable-libgcj --without-isl --without-cloog \
--enable-gnu-indirect-function --build=%{gcc_target_platform} \ --enable-gnu-indirect-function --build=%{gcc_target_platform} \
--with-stage1-ldflags="$OPT_LDFLAGS" \ --with-stage1-ldflags="$OPT_LDFLAGS" \
--with-boot-ldflags="$OPT_LDFLAGS" \ --with-boot-ldflags="$OPT_LDFLAGS" --disable-bootstrap \
%ifarch x86_64 %ifarch x86_64
--with-tune=generic \ --with-tune=generic \
--with-arch_32=x86-64 \ --with-arch_32=x86-64 \
@ -2732,6 +2732,9 @@ end
%doc rpm.doc/changelogs/libcc1/ChangeLog* %doc rpm.doc/changelogs/libcc1/ChangeLog*
%changelog %changelog
* Fri May 28 2021 eastb233 <xiezhiheng@huawei.com> - 9.3.1-20210528.20
- gcc.spec: Disable bootstrap to reduce building time
* Wed Apr 28 2021 eastb233 <xiezhiheng@huawei.com> - 9.3.1-20210428.19 * Wed Apr 28 2021 eastb233 <xiezhiheng@huawei.com> - 9.3.1-20210428.19
- add-fp-model-options.patch: New file - add-fp-model-options.patch: New file
- enable-simd-math.patch: Enable simd math library in C and Fortran - enable-simd-math.patch: Enable simd math library in C and Fortran