<div dir="ltr"><div style>Thank you for the replies. These are what I got, correct me if I am wrong:</div><div style><br></div><div style>If I want to build ghc executables and standard libraries, all I need is to set perf-llvm.</div>
<div style>And set perf-llvm or not does not effect the ability of ghc to use llvm.</div><div style><br></div><div style>Then how to check if the output files (executables, libraries) are generated by llvm, instead of gcc? In other words, to see if llvm was used correct.</div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 13, 2013 at 1:09 AM, Brandon Allbery <span dir="ltr">&lt;<a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="im">On Tue, Feb 12, 2013 at 11:41 AM, Magicloud Magiclouds <span dir="ltr">&lt;<a href="mailto:magicloud.magiclouds@gmail.com" target="_blank">magicloud.magiclouds@gmail.com</a>&gt;</span> wrote:<br>
</div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>  Then I `mv build.mk.sample <a href="http://build.mk" target="_blank">build.mk</a>`, set &quot;BuildFlavour = perf-llvm&quot;, add &quot;GhcWithLlvmCodeGen = YES&quot;. Finally `./configure --with-gcc=/usr/bin/llvm-gcc`. Configure output attached.</div>


<div><br></div><div>  After make, I tried `<span style="font-family:Georgia,&#39;Times New Roman&#39;,Times,serif;font-size:14px;line-height:25px">inplace/bin/</span><span style="font-family:Georgia,&#39;Times New Roman&#39;,Times,serif;font-size:14px;font-style:italic;line-height:25px">ghc-stage2 –info`, it is still using native code generator. What should I do?​<br>

</span></div></div></blockquote><div><br></div></div><div>1. I think --with-gcc= is independent of the llvm code generator.</div><div>2. Building the llvm codegen does not necessarily make it the *default* codegen; I think native remains default.  I don&#39;t know if there&#39;s a way to specify that llvm should be the default code generator.</div>

<div><br></div><div>fwiw, the ghc I have on here does not mention llvm in ghc --info, but ghc -fllvm at least tries to work.</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div><span class="HOEnZb"><font color="#888888">-- <br>
<div dir="ltr"><div>brandon s allbery kf8nh                               sine nomine associates</div>
<div><a href="mailto:allbery.b@gmail.com" target="_blank">allbery.b@gmail.com</a>                                  <a href="mailto:ballbery@sinenomine.net" target="_blank">ballbery@sinenomine.net</a></div><div>unix, openafs, kerberos, infrastructure, xmonad        <a href="http://sinenomine.net" target="_blank">http://sinenomine.net</a></div>

</div>
</font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>竹密岂妨流水过<br>山高哪阻野云飞<br><br>And for G+, please use magiclouds#<a href="http://gmail.com" target="_blank">gmail.com</a>.
</div>