[llvm-dev] cmake: program name prefix?

Johnson, Nicholas Paul via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 27 07:16:13 PST 2016


Thanks all for replies.

Krysztof said:
>We do the exact same thing with our Hexagon compiler.  The executables
>that we ship are prefixed with hexagon-. 

Chris Bieneman said:
>You also need changes to llc, opt (and any other tools you
>want) so that they read the target triple from their names.
>

Chris' reply assumes that the prefix string must be a target triple and thus should be parsed by tools.  It might be easier to do a halfway step: provide a PROGRAM_PREFIX option, but not require that the prefix string correspond to a target triple descriptor string.  This sounds like it would also satisfy Krzysztof's use case (as "hexagon-" is not a target triple specifier anyway) and it would satisfy mine too.

I am curious, would the project be interested in such a half-way patch?

Nick




More information about the llvm-dev mailing list