Skip to content

Commit fdbdb5a

Browse files
committed
?
1 parent 89229aa commit fdbdb5a

File tree

5 files changed

+10
-6
lines changed

5 files changed

+10
-6
lines changed

ci/docker/wasm32-wasi/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ COPY docker/wasm32-wasi/clang.sh /wasi-libc/bin/clang
2727

2828
RUN apt-get install -y --no-install-recommends lld
2929
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
3131

3232
# Of note here is our clang wrapper which just executes a normal clang
3333
# 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 \
3737
CARGO_TARGET_WASM32_WASI_LINKER=/wasi-libc/bin/clang \
3838
CC_wasm32_wasi=/wasi-libc/bin/clang \
3939
PATH=$PATH:/rust/bin \
40-
RUSTFLAGS='-Ctarget-feature=-crt-static -Clink-args=-Wl,-v'
40+
RUSTFLAGS=-Ctarget-feature=-crt-static

ci/install-rust.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@ echo "Setup toolchain"
77
toolchain=
88
if [ -n "$TOOLCHAIN" ]; then
99
toolchain=$TOOLCHAIN
10+
elif [ "$TARGET" = "wasm32-wasi" ]; then
11+
toolchain=1.45.2
1012
else
1113
toolchain=nightly
1214
fi
15+
1316
if [ "$OS" = "windows" ]; then
1417
: "${TARGET?The TARGET environment variable must be set.}"
1518
rustup set profile minimal

libc-test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ default-features = false
1818
[build-dependencies]
1919
cc = "1.0.61"
2020
# FIXME: Use fork ctest until the maintainer gets back.
21-
ctest2 = "0.4"
21+
ctest2 = "=0.4.0"
2222

2323
[features]
2424
default = [ "std" ]

libc-test/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ fn do_semver() {
7171
out.push("semver.rs");
7272
let mut output = BufWriter::new(File::create(&out).unwrap());
7373

74+
if env::var("TARGET").unwrap().contains("wasi") {
75+
return;
76+
}
77+
7478
let family = env::var("CARGO_CFG_TARGET_FAMILY").unwrap();
7579
let vendor = env::var("CARGO_CFG_TARGET_VENDOR").unwrap();
7680
let os = env::var("CARGO_CFG_TARGET_OS").unwrap();

libc-test/test/semver.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33

44
extern crate libc;
55

6-
// Generated in `build.rs`.
7-
include!(concat!(env!("OUT_DIR"), "/semver.rs"));
8-
96
fn main() {
107
// The test is about the imports created in `semver.rs`.
118
println!("PASSED 1 tests");

0 commit comments

Comments
 (0)