HomeWildfire Games

Fix compilation on Apple Silicon

Description

Fix compilation on Apple Silicon

This allows cross-compiling for x86_64 on mac ARM machines, and sets things up for a switch later.
SDL upgrade is necessary for compilation with the GLES headers in different SDKs.

Tested by: langbart, minohaka

Differential Revision: https://code.wildfiregames.com/D4424

Event Timeline

Langbart raised a concern with this commit.Mar 7 2022, 6:39 AM
Langbart added a subscriber: Langbart.

Problem: #6447

pip3 install --upgrade -t virtualenv virtualenv

The module virtualv==20.13.2 does not allow me to build spidermonkey.
As of 7/Mar/22 it is the latest version.

The change between 20.13.2 and 20.13.1 can be found on their Github.
https://github.com/pypa/virtualenv/blob/main/docs/changelog.rst#id1

This commit now has outstanding concerns.Mar 7 2022, 6:39 AM
Stan added a subscriber: Stan.Mar 25 2022, 9:25 PM

@Langbart is it fixed?

This commit no longer requires audit.Mar 26 2022, 5:16 PM
Langbart raised a concern with this commit.Mar 27 2022, 3:01 AM

Two weeks ago, after the problem from ticket #6447 was solved, Spidermonkey was successfully built, but testing it it today, a new problem occurs.

I just could not get it to build. I always end up here:

AttributeError: module 'distutils' has no attribute 'sysconfig'
ERROR: Error building spidermonkey

#6474
It is puzzling why this error did not occur two weeks ago.

This commit now has outstanding concerns.Mar 27 2022, 3:01 AM
This commit no longer requires audit.May 19 2022, 11:02 AM