[commit: ghc] master: Find LLVM tools when version number at end (e.g., llc-3.0) (#7661) (64aaaa1)

Ian Lynagh ian at well-typed.com
Fri Feb 15 19:35:09 CET 2013

On Fri, Feb 15, 2013 at 07:21:54PM +0100, Karel Gardas wrote:
> On 02/15/13 07:03 PM, Ian Lynagh wrote:
> >>+        $1=`${FindCmd} ${GOOD_PATH} -type f -perm +111 -maxdepth 1 -regex '.*/$3-[[0-9]]\.[[0-9]]' | ${SortCmd} -n | tail -1`
> >
> >This feels rather unpleasant to me. Is it likely that someone will have
> >programs called llc-3.0 etc, but no llc?
> Yes, Ubuntu 12.04 LTS installs LLVM 3.0 package in a way that, the
> package binaries are installed into /usr/lib/llvm-3.0 directory and
> inside /usr/bin there are llc-3.0 and opt-3.0 links created linking
> to ../lib/llvm-3.0/bin/{llc|opt}.
> So David is fixing real-world issue here.

But if you install 'llvm' (rather than 'llvm-3.0') then you get a

Analogously, on ubuntu, if you install 'gcc' then you get /usr/bin/gcc,
but if you install 'gcc-4.6' then you get /usr/bin/gcc-4.6; but we don't
search for gcc-* executables.


More information about the ghc-devs mailing list