[PATCH] D33726: [driver][netbsd] Build and pass `-L` arguments to the linker

Rui Ueyama via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 6 09:40:36 PDT 2017


ruiu added a comment.

I'm totally against adding per-OS path knowledge to our linker. Compilers already know include paths and I don't want to maintain another list of paths in the linker. Also this can be more confusing than useful when you are doing cross-linking.

For all OSes other than NetBSD, LLD works fine with the clang driver as the driver passes include paths to the linker. I don't see any reason not to do the same thing for NetBSD. That stands even if the linker has to have a list of include paths.


Repository:
  rL LLVM

https://reviews.llvm.org/D33726





More information about the cfe-commits mailing list