<div dir="ltr">You should pipe through command line options that you want via the driver. Take a look at pretty much every other target for a guideline on how to do this.<div><br></div><div>-mllvm -mattr=... is not for production use and you shouldn't do this.</div><div><br><div>-eric<br><br><div class="gmail_quote"><div dir="ltr">On Mon, May 2, 2016 at 10:32 AM Rail Shafigulin via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Is there a way to enable/disable target features through clang?<div><br></div><div>I found this, <a href="https://github.com/avr-llvm/llvm/issues/9" target="_blank">https://github.com/avr-llvm/llvm/issues/9</a>, but this seems to be talking about llc -mattr=+feature1,-feature2...</div><div><br></div><div>Is there something equivalent for clang?<br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div>Rail Shafigulin<br></div>Software Engineer <br>Esencia Technologies<br></div></div></div></div>
</div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div></div></div></div>