[cfe-users] Default compiler flags
David Blaikie via cfe-users
cfe-users at lists.llvm.org
Mon Sep 24 19:53:49 PDT 2018
Don't know of any quick way to do that in LLVM - I guess companies/folks
who do this go into the source code in Clang's driver and mess with it.
On Mon, Sep 17, 2018 at 10:10 PM Alexander Biddulph via cfe-users <
cfe-users at lists.llvm.org> wrote:
> I am trying to compile clang/llvm to target a specific CPU architecture
> (Intel Broadwell for instance). The intention here is that every time this
> specific compiler is run it will only ever generate code for that specific
> To achieve this I would like to "bake-in" some command line arguments into
> the built compiler (things like -march), but still allow the user to
> provide extra command line arguments that may override the "baked-in"
> GCC provides a spec file to achieve this, but I can't find something
> equivalent for clang/llvm. Does such a thing exist for clang/llvm?
> cfe-users mailing list
> cfe-users at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-users