[llvm-dev] enable/disable features through clang

John Criswell via llvm-dev llvm-dev at lists.llvm.org
Tue May 3 06:21:41 PDT 2016

On 5/2/16 1:32 PM, Rail Shafigulin via llvm-dev wrote:
> Is there a way to enable/disable target features through clang?
> I found this, https://github.com/avr-llvm/llvm/issues/9, but this 
> seems to be talking about llc -mattr=+feature1,-feature2...
> Is there something equivalent for clang?

Have you tried using clang --help-hidden to print all of its options?  
There might be a -mllvm -<something> option that will do what you want.


John Criswell

> -- 
> Rail Shafigulin
> Software Engineer
> Esencia Technologies
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev

John Criswell
Assistant Professor
Department of Computer Science, University of Rochester

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160503/1e1dcb4b/attachment.html>

More information about the llvm-dev mailing list