]> git.lizzy.rs Git - rust.git/commit
Adjust linking order of static nobundle libraries
author12101111 <w12101111@gmail.com>
Sun, 22 Aug 2021 07:54:03 +0000 (15:54 +0800)
committer12101111 <w12101111@gmail.com>
Thu, 26 Aug 2021 13:48:33 +0000 (21:48 +0800)
commit118df1cd6bca455498f6ef0a55133d99dfe99f0d
tree8bd13ca2a4088f07d8d0361bdf8ab37f3e5be197
parent50731df24e584e8ebc0097497169b431c005bf86
Adjust linking order of static nobundle libraries

Link the static libraries with "-bundle" modifier from upstream rust crate
right after linking this rust crate. Some linker such as GNU linker
`ld.bdf` treat order of linking as order of dependency. After this change,
static libraries with "-bundle" modifier is linked in the same order as
"+bundle" modifier. So we can change the value of "bundle" modifier without
causing linking error.
compiler/rustc_codegen_ssa/src/back/link.rs