summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-10 14:27:33 (GMT)
committerSam Thursfield <sam.thursfield@codethink.co.uk>2017-11-29 18:40:31 (GMT)
commit028a6c319204755de025e2ac4523d383bfc75a48 (patch)
treefd535926314c3c2f3fa329db102a2ff6e25808e3
parent500b45f52032796602eb397b31eab6eef1dc2b55 (diff)
downloaddefinitions-028a6c319204755de025e2ac4523d383bfc75a48.tar.gz
Update cross-build wrapper to use new `--option arch`
It was still using --target-arch which BuildStream no longer supports.
-rwxr-xr-xscripts/bst-cross-build-or-show6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/bst-cross-build-or-show b/scripts/bst-cross-build-or-show
index 3dfed9e..609430e 100755
--- a/scripts/bst-cross-build-or-show
+++ b/scripts/bst-cross-build-or-show
@@ -10,8 +10,8 @@
set -eu
bst_target_arch="$1"
bst_target="$2"
-if [ "$(bst --target-arch=$bst_target_arch show $bst_target --deps none --format '%{state}')" == 'downloadable' ]; then
- bst --colors --target-arch="$bst_target_arch" show $bst_target
+if [ "$(bst --option arch $bst_target_arch show $bst_target --deps none --format '%{state}')" == 'downloadable' ]; then
+ bst --colors --option arch "$bst_target_arch" show $bst_target
else
- bst --colors --target-arch="$bst_target_arch" build $bst_target
+ bst --colors --option arch "$bst_target_arch" build $bst_target
fi