[PATCH] D86877: [Clang][Driver] Support per-target runtime directories in the bare-metal toolchain

Raul Tambre via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 1 00:02:06 PDT 2020


tambre updated this revision to Diff 289085.
tambre added a comment.

Remove define to change driver behaviour, use ToolChain::getCompilerRTArgString() instead.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86877/new/

https://reviews.llvm.org/D86877

Files:
  clang/lib/Driver/ToolChains/BareMetal.cpp


Index: clang/lib/Driver/ToolChains/BareMetal.cpp
===================================================================
--- clang/lib/Driver/ToolChains/BareMetal.cpp
+++ clang/lib/Driver/ToolChains/BareMetal.cpp
@@ -156,8 +156,7 @@
 
 void BareMetal::AddLinkRuntimeLib(const ArgList &Args,
                                   ArgStringList &CmdArgs) const {
-  CmdArgs.push_back(Args.MakeArgString("-lclang_rt.builtins-" +
-                                       getTriple().getArchName()));
+  CmdArgs.push_back(getCompilerRTArgString(Args, "builtins"));
 }
 
 void baremetal::Linker::ConstructJob(Compilation &C, const JobAction &JA,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86877.289085.patch
Type: text/x-patch
Size: 632 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200901/ab334faf/attachment.bin>


More information about the cfe-commits mailing list