Skip to content

Commit 1a6a32e

Browse files
committed
Auto merge of #2532 - japaric:musl, r=alexcrichton
install-deps.py: add x86_64-unknown-linux-musl target This lets me build a statically linked cargo on our linux-cross Docker image with the following commands: $ apt-get install musl-tools # for musl-gcc, which is needed to build openssl $ ./.travis.install.deps.sh $ ./configure --local-rust-root=$(pwd)/rustc --enable-nightly --target=x86_64-unknown-linux-musl $ make $ file target/x86_64-unknown-linux-musl/release/cargo cargo: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked (..) --- r? @alexcrichton -- If we want start building cargo for this target on the bots, we'll have to modify the linux-cross Dockerfile to install musl-tools. cc @eddyb
2 parents d38f03b + d382d6a commit 1a6a32e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/etc/install-deps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
targets = [
2323
'i686-unknown-linux-gnu',
2424
'x86_64-unknown-linux-gnu',
25+
'x86_64-unknown-linux-musl',
2526
'arm-unknown-linux-gnueabi',
2627
'arm-unknown-linux-gnueabihf',
2728
'armv7-unknown-linux-gnueabihf',

0 commit comments

Comments
 (0)