Skip to content

Commit

Permalink
Add powerpc builds
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Jun 21, 2016
1 parent 80731d7 commit d70a332
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ matrix:
env: TARGET=x86_64-unknown-netbsd
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=powerpc-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=powerpc64-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1
- os: linux
rust: nightly
env: TARGET=powerpc64le-unknown-linux-gnu
DOCKER=alexcrichton/rust-slave-linux-cross:2016-04-05
SKIP_TESTS=1

# On OSX we want to target 10.7 so we ensure that the appropriate
# environment variable is set to tell the linker what we want.
Expand Down
15 changes: 15 additions & 0 deletions ci/run-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,21 @@ case $TARGET in
OPENSSL_CC=x86_64-unknown-netbsd-gcc
OPENSSL_AR=x86_64-unknown-netbsd-ar
;;
powerpc-*-linux-*)
OPENSSL_OS=linux-powerpc
OPENSSL_CC=powerpc-linux-gnu-gcc
OPENSSL_AR=powerpc-linux-gnu-ar
;;
powerpc64-*-linux-*)
OPENSSL_OS=linux-powerpc64
OPENSSL_CC=powerpc64-linux-gnu-gcc
OPENSSL_AR=powerpc64-linux-gnu-ar
;;
powerpc64le-*-linux-*)
OPENSSL_OS=linux-powerpc64le
OPENSSL_CC=powerpc64le-linux-gnu-gcc
OPENSSL_AR=powerpc64le-linux-gnu-ar
;;
*)
echo "can't cross compile OpenSSL for $TARGET"
exit 1
Expand Down

0 comments on commit d70a332

Please sign in to comment.