[cfe-dev] Option -mtune

Sam Elliott via cfe-dev cfe-dev at lists.llvm.org
Wed Apr 29 16:36:04 PDT 2020


There is also a way in CMake to have install make these symlink for you! You can use the CMake variable `CLANG_LINKS_TO_CREATE`.

It's not clear to me (from the docs) whether you need to create the `$triple.config` file or not (which can contain other command-line arguments beyond just `-target=$triple`).

I'm happy to believe James if he says you don't need that config file though!

Sam

> On 29 Apr 2020, at 10:40 pm, James Y Knight via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> 
> On Wed, Apr 29, 2020 at 5:33 PM David Greene via cfe-dev <cfe-dev at lists.llvm.org> wrote:
> Joerg Sonnenberger via cfe-dev <cfe-dev at lists.llvm.org> writes:
> 
> >> But we're already incompatible because we require -target to do
> >> cross-compiling.  Yes, gcc is not natively a cross compiler so you have
> >> to do special builds for that so I understand why -target exists.
> >
> > If you use the $triple-clang logic, no. -target is implicit in that
> > case.
> 
> Huh.  How do I do that?  I don't see any $triple-clang binary built.  Do
> I need to pass special build options to cmake?
> 
> Nope, no special build required, just create a symlink!
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

--
Sam Elliott
Software Team Lead
Senior Software Developer - LLVM and OpenTitan
lowRISC CIC



More information about the cfe-dev mailing list