Opened 2 years ago

Last modified 2 years ago

#63950 new enhancement

rust universal build

Reported by: catap (Kirill A. Korinsky) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port:

Description

Right now MacPorts has a sort of loop:

  • rust can't be build as +universal because it is used pre-build binaries;
  • cargo PG makes all dependencies universal_variant yes by default.

When something is depends on rust/cargo library, it fails on attempt to build universal build.

Because rust is quite popular this days to make libraries, I feel that the right things to do is fix universal builds for cargo-rust chain.

How? I have no idea.

Change History (4)

comment:1 Changed 2 years ago by catap (Kirill A. Korinsky)

As usual I've created ticket to early and figured out hot to fix it :)

comment:2 Changed 2 years ago by catap (Kirill A. Korinsky)

Nope, I was quite wrong: I can't fix it an easy way.

Naive approach is failed inside rust build.

comment:3 Changed 2 years ago by kencu (Ken)

If you look back about two years, rust previously did build universal.

it was a bit complicated, and universal building was stripped out when Catalina came out with only x86_64 support.

comment:4 Changed 2 years ago by catap (Kirill A. Korinsky)

@kencu and right now we have M1 which can run both: x86_64 and arm64...

Note: See TracTickets for help on using tickets.