[all-commits] [llvm/llvm-project] a946cb: [gn build] Fix link with ld.bfd and gold.
Nico Weber via All-commits
all-commits at lists.llvm.org
Wed Jun 3 14:06:53 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: a946cb1813c228ac44a94e0ddf712258b9018ea9
https://github.com/llvm/llvm-project/commit/a946cb1813c228ac44a94e0ddf712258b9018ea9
Author: Nico Weber <thakis at chromium.org>
Date: 2020-06-03 (Wed, 03 Jun 2020)
Changed paths:
M llvm/utils/gn/build/toolchain/BUILD.gn
Log Message:
-----------
[gn build] Fix link with ld.bfd and gold.
lld's symbol resolution algorithm makes it not depend on
the order of object files and libraries, but ld.bfd and
gold require listing dependencies later on the link line.
Put {{libs}} after {{inputs}} so that e.g. -lpthreads
appears after the object files, not before it.
Differential Revision: https://reviews.llvm.org/D81035
More information about the All-commits
mailing list