[MacPorts] #59864: meson-1.0.tcl: Use a cross file

MacPorts noreply at macports.org
Sun Jan 5 17:28:56 UTC 2020


#59864: meson-1.0.tcl: Use a cross file
--------------------------+--------------------
  Reporter:  ryandesign   |      Owner:  (none)
      Type:  enhancement  |     Status:  new
  Priority:  Normal       |  Milestone:
 Component:  ports        |    Version:
Resolution:               |   Keywords:
      Port:               |
--------------------------+--------------------

Comment (by kencu):

 A relevant document defining the cross file is here
 <https://github.com/mesonbuild/meson/blob/master/docs/markdown/Cross-
 compilation.md>.

 We would appear to need to specify the build machine (our default
 architecture of the system that is doing the building) and the host
 machine (our universal target architecture).

 For non-universal builds, they would be the same.

 For universal builds, we would set the host machine to the univeral
 architecture we're building for.

 I don't see any way to do multiple arch-flag builds at present, so it
 looks like the only way this works is to use the `muniversal` portgroup
 for universal builds with meson.

 I suppose all of this should go into the meson PortGroup file... not sure
 it's great to include the muniversal portgroup inside that portfile, but
 it's much easier than doing having to define it separately in every port
 that uses meson I suppose.

-- 
Ticket URL: <https://trac.macports.org/ticket/59864#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list