]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #102215 - alexcrichton:wasm-link-whole-archive, r=estebank
authorManish Goregaokar <manishsmail@gmail.com>
Fri, 11 Nov 2022 17:12:29 +0000 (12:12 -0500)
committerGitHub <noreply@github.com>
Fri, 11 Nov 2022 17:12:29 +0000 (12:12 -0500)
Implement the `+whole-archive` modifier for `wasm-ld`

This implements the `Linker::{link_whole_staticlib,link_whole_rlib}` methods for the `WasmLd` linker used on wasm targets. Previously these methods were noops since I think historically `wasm-ld` did not have support for `--whole-archive` but nowadays it does, so the flags are passed through.

1  2 
compiler/rustc_codegen_ssa/src/back/linker.rs