svn commit: r521968 - head/devel/llvm90
Piotr Kubaj
pkubaj at anongoth.pl
Sat Jan 4 12:02:55 UTC 2020
Thanks, committed!
On 20-01-04 01:53:44, Jan Beich wrote:
> Piotr Kubaj <pkubaj at FreeBSD.org> writes:
>
> > Author: pkubaj
> > Date: Fri Jan 3 23:46:49 2020
> > New Revision: 521968
> > URL: https://svnweb.freebsd.org/changeset/ports/521968
> >
> > Log:
> > devel/llvm90: fix ELFv2 option autodetection
> >
> > Submitted by: alfredo.junior at eldorado.org.br
> > Approved by: brooks (maintainer timeout)
> > Differential Revision: https://reviews.freebsd.org/D22810
> >
> > Modified:
> > head/devel/llvm90/Makefile
> >
> > Modified: head/devel/llvm90/Makefile
> > ==============================================================================
> > --- head/devel/llvm90/Makefile Fri Jan 3 23:31:39 2020 (r521967)
> > +++ head/devel/llvm90/Makefile Fri Jan 3 23:46:49 2020 (r521968)
> > @@ -69,7 +69,6 @@ OPTIONS_DEFINE_powerpc64= OPENMP
> > OPTIONS_DEFAULT= BE_AMDGPU BE_STANDARD CLANG EXTRAS LIT LLD LLD_LINK LLDB PYCLANG
> > OPTIONS_DEFAULT_amd64= COMPILER_RT GOLD OPENMP
> > OPTIONS_DEFAULT_i386= COMPILER_RT OPENMP
> > -OPTIONS_DEFAULT_powerpc64= OPENMP
> > OPTIONS_SINGLE= BACKENDS
> > OPTIONS_SINGLE_BACKENDS=BE_FREEBSD BE_NATIVE BE_STANDARD
> > OPTIONS_SUB= yes
> > @@ -218,7 +217,9 @@ EXTRAS_PATTERN= ${EXTRAS_COMMANDS:tW:C/ */|/g}|${EXTR
> >
> > # PPC_ABI variable is only defined after including bsd.port.options.mk
> > .if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
> > -OPTIONS_DEFAULT_powerpc64= ELFV2
> > +OPTIONS_DEFAULT_powerpc64= ELFV2 OPENMP
> > +.else
> > +OPTIONS_DEFAULT_powerpc64= OPENMP
> > .endif
>
> Why not convert conditional to lazy expansion instead?
>
> Index: devel/llvm90/Makefile
> ===================================================================
> --- devel/llvm90/Makefile (revision 521969)
> +++ devel/llvm90/Makefile (working copy)
> @@ -69,6 +69,7 @@ OPTIONS_DEFINE_powerpc64= OPENMP
> OPTIONS_DEFAULT= BE_AMDGPU BE_STANDARD CLANG EXTRAS LIT LLD LLD_LINK LLDB PYCLANG
> OPTIONS_DEFAULT_amd64= COMPILER_RT GOLD OPENMP
> OPTIONS_DEFAULT_i386= COMPILER_RT OPENMP
> +OPTIONS_DEFAULT_powerpc64= ${PPC_ABI:tu:MELFV2} OPENMP
> OPTIONS_SINGLE= BACKENDS
> OPTIONS_SINGLE_BACKENDS=BE_FREEBSD BE_NATIVE BE_STANDARD
> OPTIONS_SUB= yes
> @@ -215,13 +216,6 @@ EXTRAS_PATTERN= ${EXTRAS_COMMANDS:tW:C/ */|/g}|${
>
> .include <bsd.port.options.mk>
>
> -# PPC_ABI variable is only defined after including bsd.port.options.mk
> -.if defined(PPC_ABI) && ${PPC_ABI} == ELFv2
> -OPTIONS_DEFAULT_powerpc64= ELFV2 OPENMP
> -.else
> -OPTIONS_DEFAULT_powerpc64= OPENMP
> -.endif
> -
> # keep in sync with /usr/src/lib/clang/clang.build.mk
> # ----------- start of sync block ------------------
> # Armv6 and armv7 uses hard float abi, unless the CPUTYPE has soft in it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20200104/08f5e881/attachment.sig>
More information about the svn-ports-all
mailing list