about summary refs log tree commit diff
path: root/src/ci/docker/scripts
diff options
context:
space:
mode:
authorThomas Lively <tlively@google.com>2017-06-20 13:37:58 -0700
committerThomas Lively <tlively@google.com>2017-06-22 18:34:56 -0700
commit447297ce597d2762db40afaa2349fc927c90f897 (patch)
treec78f7493384a6805b973a49d5b6a685d969072b0 /src/ci/docker/scripts
parentbd62230fbdcaf6508dec02a59818f732bd4c1759 (diff)
downloadrust-447297ce597d2762db40afaa2349fc927c90f897.tar.gz
rust-447297ce597d2762db40afaa2349fc927c90f897.zip
Make wasm32 buildbot test LLVM backend
This adds the experimental targets option to configure so it can be used
by the builders and changes the wasm32 Dockerfile accordingly. Instead
of using LLVM from the emsdk, the builder's emscripten tools now uses
the Rust in-tree LLVM, since this is the one built with wasm support.
Diffstat (limited to 'src/ci/docker/scripts')
-rw-r--r--src/ci/docker/scripts/emscripten.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ci/docker/scripts/emscripten.sh b/src/ci/docker/scripts/emscripten.sh
index 8aa5a98d7fc..516ef0ae0d2 100644
--- a/src/ci/docker/scripts/emscripten.sh
+++ b/src/ci/docker/scripts/emscripten.sh
@@ -40,9 +40,12 @@ hide_output ./emsdk install sdk-1.37.13-64bit
 source ./emsdk_env.sh
 echo "main(){}" > a.c
 HOME=/emsdk-portable/ emcc a.c
-HOME=/emsdk-portable/ emcc -s BINARYEN=1 a.c
+HOME=/emsdk-portable/ emcc -s WASM=1 a.c
 rm -f a.*
 
+# Make emscripten use Rust's LLVM
+echo "LLVM_ROOT='/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin'" >> /root/.emscripten
+
 # Make emsdk usable by any user
 cp /root/.emscripten /emsdk-portable
 chmod a+rxw -R /emsdk-portable