[cfe-dev] Clang default compiler options

Nikola Smiljanic popizdeh at gmail.com
Sat Mar 14 15:42:41 PDT 2015


Why don't you use an alias or a script?

On Sat, Mar 14, 2015 at 5:33 AM, Madhur Amilkanthwar <madhur13490 at gmail.com>
wrote:

> 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.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20150315/d99ace96/attachment.html>


More information about the cfe-dev mailing list