Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
376494ef
Commit
376494ef
authored
Jan 14, 2021
by
Isuru Fernando
Browse files
fix arm64 standalone builds
parent
b78af452
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
common_utils.sh
common_utils.sh
+8
-2
No files found.
common_utils.sh
View file @
376494ef
...
@@ -272,9 +272,11 @@ function bdist_wheel_cmd {
...
@@ -272,9 +272,11 @@ function bdist_wheel_cmd {
function run_command_universal2 {
function run_command_universal2 {
if [[ "
${
PLAT
:-}
" == "
arm64
" ]]; then
if [[ "
${
PLAT
:-}
" == "
arm64
" ]]; then
export
_PYTHON_HOST_PLATFORM="
macosx-11.0-
arm64
"
export
PLAT_BACKUP="
arm64
"
fi
fi
if [[ "
${
PLAT
:-}
" == "
universal2
" ]]; then
if [[ "
${
PLAT
:-}
" == "
universal2
" ]]; then
export PLAT_BACKUP="
universal2
"
export PLAT="
x86_64
"
export _PYTHON_HOST_PLATFORM="
macosx-10.9-x86_64
"
export _PYTHON_HOST_PLATFORM="
macosx-10.9-x86_64
"
export CFLAGS+="
-arch
x86_64
"
export CFLAGS+="
-arch
x86_64
"
export CXXFLAGS+="
-arch
x86_64
"
export CXXFLAGS+="
-arch
x86_64
"
...
@@ -282,9 +284,12 @@ function run_command_universal2 {
...
@@ -282,9 +284,12 @@ function run_command_universal2 {
$@
$@
rm -rf *-stamp
rm -rf *-stamp
export
_PYTHON_HOST_PLATFORM="
macosx-11.0-
arm64
"
export
PLAT="
arm64
"
export BUILD_PREFIX=/usr/local-arm64
export BUILD_PREFIX=/usr/local-arm64
mkdir -p /usr/local-arm64
mkdir -p /usr/local-arm64
fi
if [[ "
${
PLAT
:-}
" == "
universal2
" || "
${
PLAT
:-}
" == "
arm64
" ]]; then
export _PYTHON_HOST_PLATFORM="
macosx-11.0-arm64
"
export CFLAGS+="
-arch
arm64
"
export CFLAGS+="
-arch
arm64
"
export CXXFLAGS+="
-arch
arm64
"
export CXXFLAGS+="
-arch
arm64
"
export ARCHFLAGS+="
-arch
arm64
"
export ARCHFLAGS+="
-arch
arm64
"
...
@@ -293,6 +298,7 @@ function run_command_universal2 {
...
@@ -293,6 +298,7 @@ function run_command_universal2 {
export FC=
$FC_ARM64
export FC=
$FC_ARM64
export host_alias="
aarch64-apple-darwin20.0.0
"
export host_alias="
aarch64-apple-darwin20.0.0
"
$@
$@
export PLAT="
$PLAT_BACKUP
"
else
else
$@
$@
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment