summaryrefslogtreecommitdiffstats
path: root/ci/utils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ci/utils.sh')
-rw-r--r--ci/utils.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/ci/utils.sh b/ci/utils.sh
index 32c7de37..7dcd7cec 100644
--- a/ci/utils.sh
+++ b/ci/utils.sh
@@ -39,11 +39,11 @@ dobin() {
}
architecture() {
- case $1 in
- x86_64-unknown-linux-gnu|x86_64-unknown-linux-musl)
+ case ${TARGET:?} in
+ x86_64-*)
echo amd64
;;
- i686-unknown-linux-gnu|i686-unknown-linux-musl)
+ i686-*|i586-*|i386-*)
echo i386
;;
arm*-unknown-linux-gnueabihf)
@@ -54,3 +54,11 @@ architecture() {
;;
esac
}
+
+is_ssse3_target() {
+ case "${TARGET}" in
+ i686-unknown-netbsd) return 1 ;; # i686-unknown-netbsd - SSE2
+ i686*|x86_64*) return 0 ;;
+ esac
+ return 1
+}