summaryrefslogtreecommitdiff
path: root/tcwg-benchmark.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-04-22 14:21:49 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2019-04-22 14:32:07 +0000
commit2f37b6c038cdb55eb82dff58ec296b087c20dc0b (patch)
tree15beb0b3fd877dae5e3cbd9001c22b0a2d32217c /tcwg-benchmark.sh
parent0b946a5bf346c0571c38280d3acbbda0db0c4064 (diff)
tcwg_bmk-build.sh: Workaround clang's linking problem in -Os/-Oz LTO builds
... by adding ability to set custom linking flags. See https://projects.linaro.org/browse/LLVM-557 . Clang's driver needs fixing to avoid passing -Os/-Oz to the linker. Change-Id: Id1858483f18babd95cd79c645479cdc6a2e378f0
Diffstat (limited to 'tcwg-benchmark.sh')
-rwxr-xr-xtcwg-benchmark.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh
index 1791369b..054de48e 100755
--- a/tcwg-benchmark.sh
+++ b/tcwg-benchmark.sh
@@ -11,6 +11,7 @@ toolchain_url="$toolchain_url"
toolchain_type="${toolchain_type-auto}"
bench_list="$bench_list"
cflags="$cflags"
+ldflags="$ldflags"
extension="$extension"
testmode="$testmode"
iterations="$iterations"
@@ -246,6 +247,7 @@ ssh -t -Snone "$boardname" bmk-scripts/run.sh \
--bench "$(printf '%q' "$bench_list")" \
--config "${BUILD_NUMBER}-$run_profile" \
--cflags "$(printf '%q' "$cflags")" \
+ --ldflags "$(printf '%q' "$ldflags")" \
--ccprefix "$ccprefix" \
--extension "$extension" \
--ignore_errors "$ignore_errors" \