[llvm-dev] [CMake] LLVM_PROGRAM_PREFIX support

Chris Bieneman via llvm-dev llvm-dev at lists.llvm.org
Mon Jul 25 18:46:36 PDT 2016


In the LLVM build system we have a distinction between tools and utilities. I suspect that the prefix would be applied to tools, but not utilities. AddLLVM.cmake has the distinguishing code between the add_llvm_tool and add_llvm_util functions.

-Chris

> On Jul 20, 2016, at 1:39 PM, Sumanth Gundapaneni via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> 
> > In any case, if prefixes are supported, why not universally apply to all rather than having special exemptions that are going to make generalised build configuration more difficult?
> Agree. But, this is purely implementation specific.
>  
> From: Martin J. O'Riordan [mailto:martin.oriordan at movidius.com] 
> Sent: Wednesday, July 20, 2016 2:53 PM
> To: 'Sumanth Gundapaneni' <sgundapa at codeaurora.org>
> Cc: 'LLVM Developers' <llvm-dev at lists.llvm.org>
> Subject: RE: [llvm-dev] [CMake] LLVM_PROGRAM_PREFIX support
>  
> I’m not against the idea, but why do we need prefixes at all?  I understand with GCC the need to prefix with the target triple as it uses separate programs for each target, but I think that is not the case with LLVM/CLang.
>  
> In any case, if prefixes are supported, why not universally apply to all rather than having special exemptions that are going to make generalised build configuration more difficult?
>  
>             MartinO
>  
> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org] On Behalf Of Sumanth Gundapaneni via llvm-dev
> Sent: 20 July 2016 20:48
> To: llvm-dev at lists.llvm.org
> Subject: [llvm-dev] [CMake] LLVM_PROGRAM_PREFIX support
>  
> Hi,
>    I am planning to add support to CMake so that the binaries of llvm will have a prefix appended to it.
> At this point, I am stuck on which approach to follow
>  
> 1.       Append the prefix during build and install time. If so, this might involve tweaking lit infrastructure to make sure lit picks the prefixed binaries.
> 2.       Append the prefix only during install time.
> a.       Either create symbolic links with prefixed names to existing binaries. On windows this might create copies bloating the install directory
> b.      Or rename the existing binaries with prefixed name.
>  
> We may not need all the binaries to be prefixed . It doesn’t make sense to prefix the utils FileCheck, not, count, llvm-config etc.
> I might add two CMake variables
> >LLVM_PROGRAM_PREFIX
> >LLVM_PROGRAM_PREFIX_EXCLUSION_LIST (This will specify the list of binaries that don’t need a prefix)
>  
> Let me know your thoughts
>  
> --Sumanth G
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160725/96f679e2/attachment.html>


More information about the llvm-dev mailing list