From fd757e541af0dbd3916aee0064014fea59f7df9e Mon Sep 17 00:00:00 2001 From: huitailangzju <804544223@qq.com> Date: Mon, 19 Dec 2022 23:15:58 +0800 Subject: [PATCH] =?UTF-8?q?BugFix=EF=BC=9A=20remove=20backslash=20in=20opt?= =?UTF-8?q?ions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 13db7cfc9ec27e41d34afd17db0b1498a4304f3c) --- 0002-Bugfix-Remove-Backslash-in-Options.patch | 13 +++++++++++++ A-FOT.spec | 9 ++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 0002-Bugfix-Remove-Backslash-in-Options.patch diff --git a/0002-Bugfix-Remove-Backslash-in-Options.patch b/0002-Bugfix-Remove-Backslash-in-Options.patch new file mode 100644 index 0000000..ea8750b --- /dev/null +++ b/0002-Bugfix-Remove-Backslash-in-Options.patch @@ -0,0 +1,13 @@ +diff --git a/auto_prefetch.sh b/auto_prefetch.sh +index 265828a..b7f5932 100644 +--- a/auto_prefetch.sh ++++ b/auto_prefetch.sh +@@ -64,7 +64,7 @@ function prepare_new_env() { + create_new_wrapper + ;; + "Bear") +- export COMPILATION_OPTIONS="-fauto-profile=${gcov_file_name} -fcache-misses-profile=${profile_data_path}/${gcov_name}.cache-misses\:u -fprefetch-loop-arrays=2" ++ export COMPILATION_OPTIONS="-fauto-profile=${gcov_file_name} -fcache-misses-profile=${profile_data_path}/${gcov_name}.cache-misses:u -fprefetch-loop-arrays=2" + ;; + *) + echo "[ERROR] Build mode ${build_mode} is not supported, the value is : Wrapper/Bear" diff --git a/A-FOT.spec b/A-FOT.spec index beed81a..3420f35 100644 --- a/A-FOT.spec +++ b/A-FOT.spec @@ -1,6 +1,6 @@ Name: A-FOT Version: v1.0 -Release: 1 +Release: 2 Summary: automatic feedback-directed optimization tool for openEuler License: MulanPSL-2.0 URL: https://gitee.com/openeuler/A-FOT @@ -10,6 +10,7 @@ Source0: %{name}-%{version}.tar.gz Requires: gcc gcc-c++ autofdo llvm-bolt Bear python3 Patch1: 0001-Add-Bear-to-A-FOT.patch +Patch2: 0002-Bugfix-Remove-Backslash-in-Options.patch %description A-FOT is an automatic feedback-directed optimization tool for openEuler @@ -40,6 +41,12 @@ cp split_json.py %{buildroot}/%{_bindir} %doc README.md %changelog +* Mon Dec 19 2022 huitailangzju <804544223@qq.com> - v1.0-2 +- Type:Sync +- ID:NA +- SUG:NA +- DESC:Remove backslash in options + * Thu Dec 01 2022 huitailangzju <804544223@qq.com> - v1.0-1 - Type:Sync - ID:NA -- Gitee