Repository navigation
Stabilize compiler inputs, target ABIs, and freestanding runtimes - #798
Merged
LunaStev merged 2 commits intoSep 26, 2026
Merged
Conversation
Protect compiler inputs, resolve an explicit std root once, and reject constant dependency cycles during semantic validation. Correct RISC-V and AArch64 aggregate C ABI transport, align LoongArch features with emitted instructions, and provide private wasm64 arithmetic helpers. Preserve WASI errors and retry sleep against a monotonic deadline. Recheck canonical master immediately before publishing a release and add focused regression coverage to the existing target CI jobs. Refs: wavefnd#745, wavefnd#767, wavefnd#751, wavefnd#776, wavefnd#777, wavefnd#778, wavefnd#792, wavefnd#754, wavefnd#706 Signed-off-by: LunaStev <[email protected]>
Signed-off-by: LunaStev <[email protected]>
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix the selected compiler, standard-library, target ABI, and release-publication defects:
--std-root PATHwith explicit precedence and no installed fallback. Validate the root once when preparing the compilation environment, then pass the resolved root to imports. Use the checkout std in corpus validation without changingHOME.Motivation
These defects can destroy compiler inputs, defer frontend errors to code generation, corrupt C interoperability, leave compiler-generated WebAssembly arithmetic imports unresolved, retry permanent WASI errors, or publish an outdated release revision.
Closes #745
Closes #767
Closes #751
Closes #776
Closes #777
Closes #778
Closes #792
Closes #754
Closes #706
Target and compatibility impact
--std-rootis invocation-local; omitting it retains the installed-root default. An invalid explicit root is an error even when no std imports are present. CLI help and diagnostics describe the behavior.Native C ABI changes affect RISC-V64 and AArch64. LoongArch feature resolution now matches the emitted floating-point instruction set. wasm64 arithmetic support is compiler-owned and separate from application host imports. WASI interruption uses its native errno namespace, and sleep retries consume only the remaining duration.
macOS and Windows native execution was not available locally. AArch64 Linux/Darwin/Windows objects were generated and their aggregate transport compared with Clang. Existing contributor-owned Windows and case-selection work is outside this change.
Validation
Local LLVM prefix:
/usr/lib64/llvm21; Cargo commands used--locked --jobs 2.cargo test --workspace: 300 tests passed with a fresh temporary directory and socket access for networking tests.WAVE_RUN_WASM_RUNTIME_TESTS=1 WAVE_RUN_RISCV64_INTEROP_TESTS=1 WAVE_RUN_AARCH64_INTEROP_TESTS=1 cargo test --test release_stabilization: 10 tests passed, including 56 Clang/QEMU aggregate cases across AArch64 and RISC-V lp64/lp64f/lp64d at O0/O2.cargo test --no-default-features --features llvm-target-wasm --test release_stabilization webassembly_withWAVE_RUN_WASM_RUNTIME_TESTS=1. O0/O2 execution covered arithmetic boundaries, rounding, private helper reuse, interrupt sequences, partial I/O, permanent errors, and sleep deadlines.wavec runusing the checkout std.python3 tools/check_wave_corpus.py --wavec target/release/wavec --run-std-examples: 289 corpus sources and all 26 std examples passed. Execution used socket access for the networking examples.gh, covering matching master, drift, empty/malformed responses, and API failure without publishing anything.RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-depsandcargo build --releasepassed.cargo clippy --workspace --all-targets -- -D warnings,cargo fmt --all --check,git diff --check, and standard-library policy checks passed.Checklist
Signed-off-byline.std/.