[ios] Switch to python offset tool (mono/mono#15744)
authorBernhard Urban <lewurm@gmail.com>
Fri, 19 Jul 2019 11:48:02 +0000 (13:48 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 19 Jul 2019 11:48:02 +0000 (13:48 +0200)
commitf08fdbe638842f1dcb90a6c143225b21aaf411d8
tree37bf2813fe95d03667eb72d57d2afcb4e0d5f025
parent6f38ef168b692f8e945799ca053bffb1cd495357
[ios] Switch to python offset tool (mono/mono#15744)

The C# version doesn't work on 64bit. It would require to update its dependencies, but Zoltan already added a Python version for WebAssembly which works fine.

Some notes:
* changed the semantics of `--xcode-path` in order to match the output of `xcode-select -p`
* switched to python3/pip3
* removed hack for arm64_32, it works properly now because the Python version uses stock `clang`
* removed some leftover usages of `XCODE32_DIR`.

Manually verified by comparing output with the C# version.

This will unblock the iOS team when building on Catalina/Xcode11, as they can't consume SDK archives there. See https://github.com/xamarin/xamarin-macios/pull/6603#issuecomment-512803082

Contributes to https://github.com/mono/mono/issues/9621

Commit migrated from https://github.com/mono/mono/commit/3f7d33ce855dc220873b2e679698f65084dbc336
src/mono/mono/utils/mono-context.h