From f60ea07432366c2b6af88709d54d4ca70ca3c6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=99=A8=E5=8D=89?= Date: Wed, 9 Oct 2024 15:56:11 +0800 Subject: [PATCH] Add autofdo binary files. --- 0004-Add-autofdo-binary-files.patch | 26 ++++++++++++++++++++++++++ gcc-for-openEuler.spec | 6 +++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0004-Add-autofdo-binary-files.patch diff --git a/0004-Add-autofdo-binary-files.patch b/0004-Add-autofdo-binary-files.patch new file mode 100644 index 0000000..a89071c --- /dev/null +++ b/0004-Add-autofdo-binary-files.patch @@ -0,0 +1,26 @@ +From 07eb9cb763ee8fb55e0a07135918ad27d135b4e8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?=E9=83=91=E6=99=A8=E5=8D=89?= +Date: Wed, 9 Oct 2024 15:39:42 +0800 +Subject: [PATCH] Add autofdo binary files. + +--- + build/hcc_arm64le_native/hcc_aarch64_native_release.sh | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/build/hcc_arm64le_native/hcc_aarch64_native_release.sh b/build/hcc_arm64le_native/hcc_aarch64_native_release.sh +index fc834ed..0bcb441 100644 +--- a/build/hcc_arm64le_native/hcc_aarch64_native_release.sh ++++ b/build/hcc_arm64le_native/hcc_aarch64_native_release.sh +@@ -117,6 +117,9 @@ export PKG_CONFIG_PATH=$PREFIX_NATIVE/lib64/pkgconfig + echo "Building autofdo..." && pushd $ROOT_NATIVE_DIR/obj/build-autofdo + cmake -G"Unix Makefiles" $ROOT_NATIVE_SRC/$AUTOFDO -DCMAKE_INSTALL_PREFIX=$PREFIX_NATIVE -DCMAKE_BUILD_TYPE=RelWithDebInfo -DENABLE_TOOL=GCOV -DCMAKE_LIBRARY_PATH=$PREFIX_OPENSSL/lib64 + make -j $PARALLEL && make install -j $PARALLEL && popd ++cp $ROOT_NATIVE_DIR/obj/build-autofdo/create_gcov $PREFIX_NATIVE/bin ++cp $ROOT_NATIVE_DIR/obj/build-autofdo/dump_gcov $PREFIX_NATIVE/bin ++cp $ROOT_NATIVE_DIR/obj/build-autofdo/profile_merger $PREFIX_NATIVE/bin + + echo "Building bolt..." && pushd $ROOT_NATIVE_DIR/obj/build-llvm-bolt + cmake -G"Unix Makefiles" $ROOT_NATIVE_SRC/$BOLT/llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_ASSERTIONS=ON -DLLVM_ENABLE_PROJECTS="bolt" -DLLVM_TARGETS_TO_BUILD="AArch64" -DCMAKE_INSTALL_PREFIX=$PREFIX_BOLT -DBUILD_SHARED_LIBS:BOOL=ON +-- +2.33.0 + diff --git a/gcc-for-openEuler.spec b/gcc-for-openEuler.spec index adffd6e..929abf3 100644 --- a/gcc-for-openEuler.spec +++ b/gcc-for-openEuler.spec @@ -1,6 +1,6 @@ Name: gcc-for-openEuler Version: 2.0.0 -Release: 2 +Release: 3 Summary: GCC released as a binary package for openEuler and other OSes. License: GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2 and BSD @@ -18,6 +18,7 @@ BuildRequires: chrpath centos-release-scl devtoolset-7 python3 zlib-devel lksctp Patch1: 0001-Change-branch-name-for-mathlib-and-jemalloc.patch Patch2: 0002-Temporarily-fix-pin-gcc-client-build-error.patch Patch3: 0003-Modify-openssl-compilation-options-to-match-src-repo.patch +Patch4: 0004-Add-autofdo-binary-files.patch %description GCC released as a binary package for openEuler and other OSes. @@ -45,6 +46,9 @@ sha256sum %{build_name}.tar.gz > %{build_name}.tar.gz.sha256 %attr(755, root, root) /%{build_name}.tar.gz.sha256 %changelog +* Wed Oct 9 2024 Zheng Chenhui - 2.0.0-3 +- Add autofdo binary files. + * Fri Sep 27 2024 Zheng Chenhui - 2.0.0-2 - Modify openssl compilation options to match src repository. -- Gitee