[MacPorts] #71699: harfbuzz @10.1.0_2+universal: ninja: error: unknown target 'CFLAGS+=-arch x86_64'
MacPorts
noreply at macports.org
Thu Jan 2 05:42:07 UTC 2025
#71699: harfbuzz @10.1.0_2+universal: ninja: error: unknown target 'CFLAGS+=-arch
x86_64'
------------------------------+-------------------------------
Reporter: thetrial | Owner: mascguy
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.10.5
Resolution: | Keywords: legacy-os, sierra
Port: harfbuzz, ninja |
------------------------------+-------------------------------
Comment (by psiborg112):
Replying to [comment:11 ryandesign]:
> Replying to [comment:5 psiborg112]:
> > and the `foreach tool {cc ld}` line that encapsulates it suggests it
shouldn't be added to a ninja command.
>
> You're misreading the code. The code says for each tool, map the tool
name to an environment variable name (e.g. it maps `cc` to `CFLAGS` and
`ld` to `LDFLAGS`). Then it appends `CFLAGS+=-arch …` and `LDFLAGS+=-arch
…` to the separate `build.args.…` variables for each architecture. These
args would presumably be understood if the `build.cmd` were `make` but
`ninja` doesn't seem to understand it. The
[changeset:fa29fe7f1282995888ce51761af4d08ca16646af/macports-ports
rudimentary support for meson added to the gobject_introspection
portgroup] may need further enhancement.
Thanks for the clarification.
--
Ticket URL: <https://trac.macports.org/ticket/71699#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list