]> git.lizzy.rs Git - rust.git/commit
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)
commit9553fea23a8e04162684ec0679b1ca05e61159cb
tree5225a12afa93e53ceeb6df4695b5a4eb810fcd4e
parent76ce198128c136cf908a4dfb1146489ae4ae7db3
parent6630c146f213088dff0d4ebd8dad90591544c169
Rollup merge of #102215 - alexcrichton:wasm-link-whole-archive, r=estebank

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.
compiler/rustc_codegen_ssa/src/back/linker.rs