Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Sun, 07 Nov 2021 16:14:31 UTC Commit: aa3b17114c5ff7f47a694fd167bc772f285dd0a0 https://github.com/geany/geany-osx/commit/aa3b17114c5ff7f47a694fd167bc772f28...
Log Message: ----------- Describe x86 cross-compilation on ARM-based Macs
Modified Paths: -------------- README.md
Modified: README.md 14 lines changed, 9 insertions(+), 5 deletions(-) =================================================================== @@ -98,15 +98,19 @@ To create the bundle, you need to first install JHBuild and GTK as described bel 4. Add the following lines to `~/.config/jhbuildrc-custom`: ``` setup_sdk(target="10.13", architectures=["x86_64"]) - setup_release() + setup_release() # enables optimizations ``` With this settings, the build creates a 64-bit binary that works on macOS 10.13 and later. Instead of `x86_64` you can also specify - `arm64` to produce binaries for Apple ARM processors (this only works + `arm64` to produce binaries for Apple ARM processors. This only works when building on an ARM processor - it isn't possible to compile - ARM binaries on an Intel processor). By default, - jhbuild compiles without optimization flags. The `setup_release()` - call enables optimizations. + ARM binaries on an Intel processor. It is, however, possible to compile + `x86_64` binaries on an ARM Mac - to do so, it is necessary to run + ``` + env /usr/bin/arch -x86_64 /bin/zsh --login + ``` + which creates a `x86_64` shell and all the compilation steps below + have to be executed in this shell
5. Install GTK and all of its dependencies by running the following command inside the `geany-osx` directory:
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).