1 # Copyright 2017 The Rust Project Developers. See the COPYRIGHT
2 # file at the top-level directory of this distribution and at
3 # http://rust-lang.org/COPYRIGHT.
5 # Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 # http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 # <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 # option. This file may not be copied, modified, or distributed
9 # except according to those terms.
16 echo ERROR: An error was encountered with the build.
21 bash -c "while true; do sleep 30; echo \$(date) - building ...; done" &
31 curl -L https://s3.amazonaws.com/mozilla-games/emscripten/releases/emsdk-portable.tar.gz | \
36 hide_output ./emsdk install sdk-1.37.13-64bit
37 ./emsdk activate sdk-1.37.13-64bit
39 # Compile and cache libc
42 HOME=/emsdk-portable/ emcc a.c
43 HOME=/emsdk-portable/ emcc -s BINARYEN=1 a.c
46 # Make emsdk usable by any user
47 cp /root/.emscripten /emsdk-portable
48 chmod a+rxw -R /emsdk-portable
50 # node 8 is required to run wasm
52 curl -L https://nodejs.org/dist/v8.0.0/node-v8.0.0-linux-x64.tar.xz | \