summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-08-04 12:47:12 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-08-04 12:52:48 +0000
commitb05a0b4c00a6e995b58b77c95b90a6320bf3eb33 (patch)
tree6ed2c07267c61879b0d38580a8177d22389dc53a
parent472b7c0bea45f5932d2b2111c9b6c340cc96adf1 (diff)
downloadjenkins-scripts-b05a0b4c00a6e995b58b77c95b90a6320bf3eb33.tar.gz
tcwg_bmk-build.sh: Fix LTO benchmarking
The second line was overwriting the effect of the first line, so _LTO was translated into -LTO. -LTO happens to be a legitimate compiler/linker option for both GCC and Clang, so we didn't get any errors, but were not benchmarking LTO code. Change-Id: I2bba054b3574511137da9f3ea33080b16752d0cd
-rwxr-xr-xtcwg_bmk-build.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh
index 047006c4..16d2665c 100755
--- a/tcwg_bmk-build.sh
+++ b/tcwg_bmk-build.sh
@@ -205,8 +205,8 @@ benchmark ()
mkdir "$(pwd)"/bin
local bmk_flags bmk_ldflags reboot run_profile
- bmk_flags="$(echo $bmk_cflags | sed -e "s/_/ -/g" -e "s/LTO/flto/g")"
- bmk_flags="$(echo $bmk_cflags | sed -e "s/_/ -/g" -e "s/VECT/fmetric-vect/g")"
+ bmk_flags="$(echo $bmk_cflags | sed -e "s/_/ -/g" -e "s/LTO/flto/g" \
+ -e "s/VECT/fmetric-vect/g")"
case "$bmk_cflags" in
"-Os"*|"-Oz"*)
reboot=false