diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 500cbc0a52..ecc57fd334 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -112,7 +112,7 @@ jobs: - os: ubuntu-latest rust: beta - os: ubuntu-latest - rust: nightly-2025-12-05 + rust: nightly-2026-01-20 - os: macos-latest rust: stable - os: windows-latest diff --git a/crates/wit-dylib/test-programs/artifacts/build.rs b/crates/wit-dylib/test-programs/artifacts/build.rs index 903aab80d7..f68837eb57 100644 --- a/crates/wit-dylib/test-programs/artifacts/build.rs +++ b/crates/wit-dylib/test-programs/artifacts/build.rs @@ -33,6 +33,12 @@ https://github.com/webassembly/wasi-sdk format!("CARGO_TARGET_{upcase}_LINKER"), wasi_sdk_path.join("bin/clang"), ) + // FIXME: this is needed since the Rust standard library is depending on + // a buggy libc crate which has bindings for symbols that don't exist. + // Once libc is updated in rust-lang/rust and that propagates to stable + // this can be removed. + .env("CARGO_PROFILE_DEV_LTO", "true") + .env("CARGO_PROFILE_RELEASE_LTO", "true") .env_remove("CARGO_ENCODED_RUSTFLAGS"); if !debug { cargo.arg("--release");