about summary refs log tree commit diff
path: root/tests/rustdoc-js-std/parser-slice-array.js
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2024-02-22 08:12:09 -0800
committerAlex Crichton <alex@alexcrichton.com>2024-02-23 13:13:01 -0800
commit646e8e729168d95dbb65ee2d27cd00d2f0ece846 (patch)
tree06eaa2162a6f82527066ad4a84af0718f02b5dab /tests/rustdoc-js-std/parser-slice-array.js
parent2dbd6233ccdb2cd4b621a5e839a95c3fbbc0c375 (diff)
downloadrust-646e8e729168d95dbb65ee2d27cd00d2f0ece846.tar.gz
rust-646e8e729168d95dbb65ee2d27cd00d2f0ece846.zip
rustc: Fix wasm64 metadata object files
It looks like LLD will detect object files being either 32 or 64-bit
depending on any memory present. LLD will additionally reject 32-bit
objects during a 64-bit link. Previously metadata objects did not have
any memories in them which led LLD to conclude they were 32-bit objects
which broke 64-bit targets for wasm.

This commit fixes this by ensuring that for 64-bit targets there's a
memory object present to get LLD to detect it's a 64-bit target.
Additionally this commit moves away from a hand-crafted wasm encoder to
the `wasm-encoder` crate on crates.io as the complexity grows for the
generated object file.

Closes #121460
Diffstat (limited to 'tests/rustdoc-js-std/parser-slice-array.js')
0 files changed, 0 insertions, 0 deletions