Skip to content

Commit 571bdeb

Browse files
committed
update multibuild and make the switch labels clearer
1 parent a4cf419 commit 571bdeb

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

travis-ci/build_steps.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -85,30 +85,31 @@ function do_build_lib {
8585
local suffix=$2
8686
local interface64=$3
8787
echo "Building with settings: '$plat' '$suffix' '$interface64'"
88-
case $plat in
89-
x86_64)
88+
case $(get_os)-$plat in
89+
Linux-x86_64)
9090
local bitness=64
9191
local target_flags="TARGET=PRESCOTT"
92-
if [ -n "$IS_OSX" ]; then
93-
target_flags="TARGET=CORE2"
94-
fi
9592
;;
96-
i686)
93+
Darwin-x86_64)
94+
local bitness=64
95+
local target_flags="TARGET=CORE2"
96+
;;
97+
*-i686)
9798
local bitness=32
9899
local target_flags="TARGET=PRESCOTT"
99100
;;
100-
aarch64)
101+
Linux-aarch64)
101102
local bitness=64
102103
local target_flags="TARGET=ARMV8"
103104
;;
104-
arm64)
105+
Darwin-arm64)
105106
local bitness=64
106107
local target_flags="TARGET=VORTEX"
107108
;;
108-
s390x)
109+
*-s390x)
109110
local bitness=64
110111
;;
111-
ppc64le)
112+
*-ppc64le)
112113
local bitness=64
113114
local target_flags="TARGET=POWER8"
114115
;;

0 commit comments

Comments
 (0)