File tree 5 files changed +10
-6
lines changed 5 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ COPY docker/wasm32-wasi/clang.sh /wasi-libc/bin/clang
27
27
28
28
RUN apt-get install -y --no-install-recommends lld
29
29
RUN ln -s /usr/bin/wasm-ld-10 /usr/bin/wasm-ld
30
- ENV PATH=$PATH:/usr/lib/llvm-9 /bin
30
+ ENV PATH=$PATH:/usr/lib/llvm-10 /bin
31
31
32
32
# Of note here is our clang wrapper which just executes a normal clang
33
33
# executable with the right sysroot, and then we're sure to turn off the
@@ -37,4 +37,4 @@ ENV CARGO_TARGET_WASM32_WASI_RUNNER=wasmtime \
37
37
CARGO_TARGET_WASM32_WASI_LINKER=/wasi-libc/bin/clang \
38
38
CC_wasm32_wasi=/wasi-libc/bin/clang \
39
39
PATH=$PATH:/rust/bin \
40
- RUSTFLAGS=' -Ctarget-feature=-crt-static -Clink-args=-Wl,-v'
40
+ RUSTFLAGS=-Ctarget-feature=-crt-static
Original file line number Diff line number Diff line change @@ -7,9 +7,12 @@ echo "Setup toolchain"
7
7
toolchain=
8
8
if [ -n " $TOOLCHAIN " ]; then
9
9
toolchain=$TOOLCHAIN
10
+ elif [ " $TARGET " = " wasm32-wasi" ]; then
11
+ toolchain=1.45.2
10
12
else
11
13
toolchain=nightly
12
14
fi
15
+
13
16
if [ " $OS " = " windows" ]; then
14
17
: " ${TARGET?The TARGET environment variable must be set.} "
15
18
rustup set profile minimal
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ default-features = false
18
18
[build-dependencies ]
19
19
cc = " 1.0.61"
20
20
# FIXME: Use fork ctest until the maintainer gets back.
21
- ctest2 = " 0.4"
21
+ ctest2 = " = 0.4.0 "
22
22
23
23
[features ]
24
24
default = [ " std" ]
Original file line number Diff line number Diff line change @@ -71,6 +71,10 @@ fn do_semver() {
71
71
out. push ( "semver.rs" ) ;
72
72
let mut output = BufWriter :: new ( File :: create ( & out) . unwrap ( ) ) ;
73
73
74
+ if env:: var ( "TARGET" ) . unwrap ( ) . contains ( "wasi" ) {
75
+ return ;
76
+ }
77
+
74
78
let family = env:: var ( "CARGO_CFG_TARGET_FAMILY" ) . unwrap ( ) ;
75
79
let vendor = env:: var ( "CARGO_CFG_TARGET_VENDOR" ) . unwrap ( ) ;
76
80
let os = env:: var ( "CARGO_CFG_TARGET_OS" ) . unwrap ( ) ;
Original file line number Diff line number Diff line change 3
3
4
4
extern crate libc;
5
5
6
- // Generated in `build.rs`.
7
- include ! ( concat!( env!( "OUT_DIR" ) , "/semver.rs" ) ) ;
8
-
9
6
fn main ( ) {
10
7
// The test is about the imports created in `semver.rs`.
11
8
println ! ( "PASSED 1 tests" ) ;
You can’t perform that action at this time.
0 commit comments