Skip to content

Commit b1090ae

Browse files
committed
install prefix
1 parent 7c5bd3c commit b1090ae

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Dockerfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,22 +23,19 @@ RUN chmod +x /usr/local/bin/rust-wasm.sh \
2323
&& cd llvm \
2424
&& mkdir working \
2525
&& cd working \
26-
&& cmake -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly .. \
26+
&& cmake -DCMAKE_INSTALL_PREFIX=/rust-wasm-bin/llvm -DCMAKE_BUILD_TYPE=Release -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly .. \
2727
&& make -j8 \
28-
&& cd .. \
29-
&& cp -r working /rust-wasm-bin/llvm \
28+
&& make install \
3029
# binaryen
3130
&& cd /rust-wasm \
3231
&& git clone --single-branch --depth=1 https://github.com/WebAssembly/binaryen.git \
3332
&& cd binaryen \
3433
&& mkdir working \
3534
&& cd working \
36-
&& cmake .. \
35+
&& cmake -DCMAKE_INSTALL_PREFIX=/rust-wasm-bin/binaryen .. \
3736
&& make -j8 \
38-
&& cd .. \
39-
&& cp -r working /rust-wasm-bin/binaryen \
37+
&& make install \
4038
# rustup
41-
&& cd /rust-wasm \
4239
&& curl https://sh.rustup.rs -sSf | sh -s -- -y \
4340
# clean
4441
&& apt-get autoclean \

0 commit comments

Comments
 (0)