about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/mod.rs
diff options
context:
space:
mode:
authorHood Chatham <roberthoodchatham@gmail.com>2024-10-14 21:16:27 +0200
committerHood Chatham <roberthoodchatham@gmail.com>2024-10-15 14:25:55 +0200
commit1d6643c4f69ba31f91a385c51f46d615bd2b0d66 (patch)
tree4900a95f4d22d6d3e650143e745402b6cb6d6ad0 /compiler/rustc_codegen_llvm/src/llvm/mod.rs
parent17a19e684cdf3ca088af8b4da6a6209d128913f4 (diff)
downloadrust-1d6643c4f69ba31f91a385c51f46d615bd2b0d66.tar.gz
rust-1d6643c4f69ba31f91a385c51f46d615bd2b0d66.zip
Fix most ui tests on emscripten target
To fix the linker errors, we need to set the output extension to `.js` instead
of `.wasm`. Setting the output to a `.wasm` file puts Emscripten into standalone
mode which is effectively a distinct target. We need to set the runner to be
`node` as well.

This fixes most of the ui tests. I fixed a few more tests with simple problems:
- `intrinsics/intrinsic-alignment.rs` and `structs-enums/rec-align-u64.rs` --
Two `#[cfg]` macros match for Emscripten so we got a duplicate definition of
`mod m`.
- `issues/issue-12699.rs` -- Seems to hang so I disabled it
- `process/process-sigpipe.rs` -- Not expected to work on Emscripten so I
disabled it
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/mod.rs')
0 files changed, 0 insertions, 0 deletions