about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/builder.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-09 22:31:57 +0100
committerGitHub <noreply@github.com>2022-12-09 22:31:57 +0100
commit320d018268113dc688e40680ede5430d75999f0a (patch)
treed6abc7b232e50d62282f4051e39592b45c622b77 /compiler/rustc_codegen_llvm/src/builder.rs
parent5156fbdc74cbf9902a96bafd27775f4764d5bfde (diff)
parent98ae83daae67e9e7663b8345eced1de8c667271f (diff)
downloadrust-320d018268113dc688e40680ede5430d75999f0a.tar.gz
rust-320d018268113dc688e40680ede5430d75999f0a.zip
Rollup merge of #105468 - sunfishcode:sunfishcode/main-void-wasi, r=estebank
Mangle "main" as "__main_void" on wasm32-wasi

On wasm, the age-old C trick of having a main function which can either have no arguments or argc+argv doesn't work, because wasm requires caller and callee signatures to match. WASI's current strategy is to have compilers mangle main's name to indicate which signature they're using. Rust uses the no-argument form, which should be mangled as `__main_void`.

This is needed on wasm32-wasi as of #105395.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/builder.rs')
0 files changed, 0 insertions, 0 deletions