[cfe-dev] Clang default compiler options

Madhur Amilkanthwar madhur13490 at gmail.com
Fri Mar 13 11:33:14 PDT 2015


Check file lib/CodeGen/BackendUtil.cpp.
You can see that options are being set based on CodeGenOpts.

On Fri, Mar 13, 2015 at 10:42 PM, Ambuj Agrawal <ambujbwt at gmail.com> wrote:

> Hi,
>
> I am trying to add compiler default setting in Clang so that I dont have
> to pass them on command line.
>
> For example:
> Instead of calling
> clang -O3
> I just want to call clang in command line which has by default -O3 flag
> passed to it.
>
> Any clues on how this can be done?
>
> Thanks,
> Ambuj
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>


-- 
Thank You.
Madhur D. Amilkanthwar
RISE lab,
IIT Madras.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150314/bf30b58f/attachment.html>


More information about the cfe-dev mailing list