[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker
Simon Atanasyan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed May 31 09:13:05 PDT 2017
atanasyan created this revision.
This patch builds and passes `-L` arguments to the linker in case of NetBSD target. That makes possible to use LLD linker which does not have any built-in per-OS paths configuration.
To do so the patch a) constructs paths to the library directories explicitly without using `=` placeholder. That allows to get correct paths whether `--sysroot` argument passed to the driver or not; b) calls `ToolChain::AddFilePathLibArgs` method to build a list of `-L` options from the paths list.
I hope this changes fix the following bug:
https://bugs.llvm.org/show_bug.cgi?id=33155
Repository:
rL LLVM
https://reviews.llvm.org/D33726
Files:
lib/Driver/ToolChains/NetBSD.cpp
test/Driver/netbsd.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33726.100874.patch
Type: text/x-patch
Size: 27276 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170531/0a651ec4/attachment-0001.bin>
More information about the cfe-commits
mailing list