[MacPorts] #64920: Allow universal variant for llvm-5.0
MacPorts
noreply at macports.org
Fri Apr 1 01:05:49 UTC 2022
#64920: Allow universal variant for llvm-5.0
-------------------------------------+----------------------
Reporter: barracuda156 | Owner: (none)
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Keywords: powerpc, leopard, ppc64 | Port: llvm-5.0
-------------------------------------+----------------------
For an unclear reason, `llvm-5.0` lacks universal variant, and
subsequently `+universal` is simply ignored, it gets built for a single
arch.
However it does build as `+universal` once `muniversal 1.0` PortGroup is
added and variant description is borrowed from earlier llvm:
{{{
platform darwin {
supported_archs ppc ppc64 i386 x86_64
}
variant universal {
build.env-append \
UNIVERSAL=1 \
UNIVERSAL_ARCH=[get_canonical_archs]
destroot.env-append \
UNIVERSAL=1 \
UNIVERSAL_ARCH=[get_canonical_archs]
post-extract {
# workaround a bug in Apple's shipped gcc driver-driver, patched
in
# ours with driverdriver-num_infiles.patch
if {${configure.compiler} eq "gcc-4.0" ||
${configure.compiler} eq "gcc-4.2" ||
${configure.compiler} eq "llvm-gcc-4.2"} {
system "echo \"static int ___ignoreme;\" >
${worksrcpath}/tools/llvm-shlib/ignore.c"
}
}
}
}}}
Then I built it with `macports-gcc-7`:
{{{
36-109:~ svacchanda$ port -v installed llvm-5.0
The following ports are currently installed:
llvm-5.0 @5.0.2_3 requested_variants='' platform='darwin 9'
archs='ppc64' date='2022-04-01T05:40:26+0800'
llvm-5.0 @5.0.2_3+universal (active) requested_variants='+universal'
platform='darwin 9' archs='ppc ppc64' date='2022-04-01T08:52:50+0800'
}}}
--
Ticket URL: <https://trac.macports.org/ticket/64920>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list