File tree 4 files changed +19
-2
lines changed
ci/docker/x86_64-unknown-linux-musl
4 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ matrix:
31
31
- { <<: *linux, env: SKIP_TESTS=1 TARGET=mips64-unknown-linux-gnuabi64 }
32
32
- { <<: *linux, env: SKIP_TESTS=1 TARGET=mips64el-unknown-linux-gnuabi64 }
33
33
- { <<: *linux, env: SKIP_TESTS=1 TARGET=s390x-unknown-linux-gnu }
34
+ - { <<: *linux, env: SKIP_TESTS=1 TARGET=x86_64-unknown-linux-musl }
34
35
- { <<: *linux, env: SKIP_TESTS=1 TARGET=arm-linux-androideabi }
35
36
- { <<: *linux, env: SKIP_TESTS=1 TARGET=armv7-linux-androideabi }
36
37
- { <<: *linux, env: SKIP_TESTS=1 TARGET=aarch64-linux-android }
Original file line number Diff line number Diff line change @@ -659,6 +659,7 @@ platform of your choice:
659
659
- [ x86_64-pc-windows-msvc] ( https://static.rust-lang.org/rustup/dist/x86_64-pc-windows-msvc/rustup-init.exe ) <sup >[ †] ( #vs2015 ) </sup >
660
660
- [ x86_64-unknown-freebsd] ( https://static.rust-lang.org/rustup/dist/x86_64-unknown-freebsd/rustup-init )
661
661
- [ x86_64-unknown-linux-gnu] ( https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init )
662
+ - [ x86_64-unknown-linux-musl] ( https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-musl/rustup-init )
662
663
- [ x86_64-unknown-netbsd] ( https://static.rust-lang.org/rustup/dist/x86_64-unknown-netbsd/rustup-init )
663
664
664
665
<a name =" vs2015 " >†</a >
Original file line number Diff line number Diff line change
1
+ FROM alpine:3.9
2
+
3
+ RUN apk update && \
4
+ apk add \
5
+ curl \
6
+ ca-certificates \
7
+ perl \
8
+ make \
9
+ gcc
10
+
11
+ ENV CC_x86_64_unknown_linux_musl=gcc
Original file line number Diff line number Diff line change @@ -172,14 +172,18 @@ get_endianness() {
172
172
}
173
173
174
174
get_architecture () {
175
- local _ostype _cputype _bitness _arch
175
+ local _ostype _cputype _bitness _arch _clibtype
176
176
_ostype=" $( uname -s) "
177
177
_cputype=" $( uname -m) "
178
+ _clibtype=" gnu"
178
179
179
180
if [ " $_ostype " = Linux ]; then
180
181
if [ " $( uname -o) " = Android ]; then
181
182
_ostype=Android
182
183
fi
184
+ if [ " $( ldd --version 2>&1 | grep ' musl' ) " ]; then
185
+ _clibtype=" musl"
186
+ fi
183
187
fi
184
188
185
189
if [ " $_ostype " = Darwin ] && [ " $_cputype " = i386 ]; then
@@ -196,7 +200,7 @@ get_architecture() {
196
200
;;
197
201
198
202
Linux)
199
- _ostype=unknown-linux-gnu
203
+ _ostype=unknown-linux-$_clibtype
200
204
_bitness=$( get_bitness)
201
205
;;
202
206
You can’t perform that action at this time.
0 commit comments