Date: Fri, 22 May 2020 10:30:07 +0200 From: Mathieu Arnold <mat@freebsd.org> To: SirDice <sirdice@gmail.com> Cc: freebsd-ports@freebsd.org Subject: Re: Port OPTIONS advice Message-ID: <20200522083007.lhgbpobmglt6dyc3@aching.in.mat.cc> In-Reply-To: <CAHNAqm8qkMC1ATdL5Yh95aX5h-0YU86G2O-otWqaWrv6tF4yoQ@mail.gmail.com> References: <CAHNAqm8qkMC1ATdL5Yh95aX5h-0YU86G2O-otWqaWrv6tF4yoQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--fki7uxqaql7ndbn4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, May 20, 2020 at 07:25:00PM +0200, SirDice wrote: > What's a good way to deal with this sort of architecture dependent option? If the feature is architecture dependant but also needs to be disabled on architectures where it does not work, a naive way that I can see to do it is probably to do something like this: OPTIONS_DEFINE=3D JIT OPTIONS_EXCLUDE_aarch64=3D JIT OPTIONS_EXCLUDE_armv6=3D JIT But you have to do it for all architectures, so it may not be the best way, a way that would be a bit more convoluted, but still readable would be: OPTIONS_DEFINE=3D JIT OPTIONS_EXCLUDE=3D ${ARCH:Ni386:Namd64:C/.+/JIT/} What it does is take ARCH, remove i386 and amd64 from it, and there is still something, replace it with JIT. --=20 Mathieu Arnold --fki7uxqaql7ndbn4 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEEVhwchfRfuV0unqO5KesJApEdfgIFAl7HjYpfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDU2 MUMxQzg1RjQ1RkI5NUQyRTlFQTNCOTI5RUIwOTAyOTExRDdFMDIACgkQKesJApEd fgIIUA//UxKs8kU7P1fF+eriBgQqwblEI9U+u5FYjLafJo/gw6bVLXcuhLKJrCSA D2V1jpJVEWREHFO40+ulMVLsmx6T0oZIdBF0DImqboIMLsGHcIxEVynOg9zYr/1r NbDgIBIlNEB5f6TnLjftBTtdISjQ9exfEedQRCgeuIMMZpWT8r06aOSfXPCRxJBW yUtRF7C0RCKcokHvm4sQwjlhe3L1V+IAzQ9SI2OPL4NVSEzjQfHeIVMLgPOVdGF3 9635Gy91L7p/x3lqgHV0IAk0TMfL0Y3WNsXq9vQgCf43d1EXt+xS+iTPzQqYeZJq 62QpXLM0Ye67HgDEjs37D/NXiEXrXp8/rIlLRaW7fgUcKy8hDhNIc1KLH0Xi3SSf GdLhDQqEQDpEUhDlgqAwC3mowrgfJ9QQwkxYmkrGQ1UOT+X0SGLIDg+RkvFa7BLy 2CVuw0kVu6Y8YeBDluFXsOyBkcGUnoiEKAOR/dvAgx1PNjQmRdvPt8ce4ydQfhwD UOBEZTLMXg8H3gtOVAMvA61g37PP2mv9FlnAvNJfnl9st1GJsSQj6ZFZNQ+Zq0nd R0+4/1N6ErhnHfwNqNIzBtpa/neC92cgplwauep53D8xmD7T1xguyvNdpMakQPUA aM7ju5EMPBDxcTnYjzgGg5QPCH98op9Y03vtmWrN6wc+XRjhB04= =Vdxx -----END PGP SIGNATURE----- --fki7uxqaql7ndbn4--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200522083007.lhgbpobmglt6dyc3>