<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Renato,</p>
<p>Thanks a lot!</p>
<p>I need to add the GCC/bin into my $PATH.</p>
<p>Previously, I was using --gcc-toolchain, which doesn't require
the toolchain be in my $PATH.</p>
<p>Thanks,</p>
<p>Weiming<br>
</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 5/18/2016 12:15 PM, Renato Golin
wrote:<br>
</div>
<blockquote
cite="mid:CAMSE1kd6qHcLjLXs_hHYXTMdu_oBpdi8HOXoQG8pL-xBo=KKGQ@mail.gmail.com"
type="cite">
<pre wrap="">On 18 May 2016 at 20:09, Zhao, Weiming via cfe-dev
<a class="moz-txt-link-rfc2396E" href="mailto:cfe-dev@lists.llvm.org"><cfe-dev@lists.llvm.org></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I set the --gcc-toolchain and -sysroot to the corresponding patsh but it
still uses my host /usr/bin/ld instead of the one in my GCC. I find that, in
getToolChain(), it gets Generic_ELF and the GCCInstallationDetector is only
used by Linux toolchain.
</pre>
</blockquote>
<pre wrap="">
Hi Weiming,
Did you use the -triple as "aarch64-elf"? On ARM, I found that this is
all you need to get the driver to find the right tools. I haven't
needed to use -gcc-tools or anything.
Also, be careful that bare-metal GNU toolchains are also bare. You'll
need to add -l* to all libraries that you need, maybe include paths,
etc.
cheers,
--renato
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation</pre>
</body>
</html>