-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved Apple Silicon support (variadic functions) + add tests on ap…
…ple-silicon-m1 (self hosted runner) (#85) * Add tests on apple-silicon-m1 (Self hosted runner) * Remove (unnecessary?) dylib and fix Makefile to build them as universal2 * Fixes variadic function call on ARM64 * IMP*(void*, SEL, ...) is failing on Apple Silicon but is not our fault * ffi_prep_cif_var should be guarded via __builtin_available(macOS 10.15, *) * On iOS we're using a non-apple version of ffi that should support ffi_prep_cif_var
- Loading branch information
Showing
9 changed files
with
93 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -e -x | ||
|
||
arm64_set_path_and_python_version(){ | ||
python_version="$1" | ||
if [[ $(/usr/bin/arch) = arm64 ]]; then | ||
export PATH=/opt/homebrew/bin:$PATH | ||
eval "$(pyenv init --path)" | ||
pyenv install $python_version -s | ||
pyenv global $python_version | ||
export PATH=$(pyenv prefix)/bin:$PATH | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters