[PATCH] D42673: [RISCV] Pick the correct RISCV linker instead of calling riscv-gcc to link

Mandeep Singh Grang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 29 17:54:28 PST 2018


mgrang created this revision.
mgrang added reviewers: asb, apazos.
mgrang added a project: clang.
Herald added subscribers: cfe-commits, hintonda, niosHD, sabuasal, jordy.potman.lists, simoncook, johnrusso, rbar, mgorny.

Currently we are invoking riscv-gcc to link. This causes all flags passed to clang to be passed down to gcc as well.
As a result we run into errors for flags not recognzied by gcc.


Repository:
  rC Clang

https://reviews.llvm.org/D42673

Files:
  lib/Driver/CMakeLists.txt
  lib/Driver/Driver.cpp
  lib/Driver/ToolChains/RISCV.cpp
  lib/Driver/ToolChains/RISCV.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42673.131908.patch
Type: text/x-patch
Size: 7250 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180130/3f95b1f7/attachment.bin>


More information about the cfe-commits mailing list