Opened 16 months ago
Last modified 16 months ago
#67744 new enhancement
gcc12 +universal arm64 supporting cross-build to x86_64 target.
Reported by: | mu578 (μῦ) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.8.1 |
Keywords: | x86_64 arm64 | Cc: | |
Port: | gcc12 |
Description
Hello,
is there a way to force build an x86_64 toolchain along with arm64? Indeed universal variant has no effect.
Change History (2)
comment:1 Changed 16 months ago by jmroot (Joshua Root)
Keywords: | gcc12 removed |
---|---|
Port: | gcc12 added |
Type: | request → enhancement |
comment:2 Changed 16 months ago by mu578 (μῦ)
Thanks Joshua, so then, I'll build a gcc cross-build toolchain outside of macport.
Note: See
TracTickets for help on using
tickets.
No, it's not currently possible, see #67652. You can install with build_arch=x86_64, but that will unnecessarily run under Rosetta. Theoretically it shouldn't be too hard to modify the portfile to build a cross-compiler, but then it won't be able to target the host arch.