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
6a18b36d
Unverified
Commit
6a18b36d
authored
Jan 20, 2021
by
Isuru Fernando
Committed by
GitHub
Jan 20, 2021
Browse files
Merge pull request #1 from radarhere/arm64
Changed functions to setup instead of wrap
parents
7bc0f343
ba14a62c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
osx_utils.sh
osx_utils.sh
+8
-10
No files found.
osx_utils.sh
View file @
6a18b36d
...
...
@@ -424,8 +424,8 @@ function activate_ccache {
echo
"Using C compiler:
$(
which clang
)
"
}
function
macos_intel_build_
wra
p
{
#
Wra
p build for single arch x86_64 wheels
function
macos_intel_build_
setu
p
{
#
Setu
p build for single arch x86_64 wheels
export
PLAT
=
"x86_64"
export
_PYTHON_HOST_PLATFORM
=
"macosx-
${
MB_PYTHON_OSX_VER
}
-x86_64"
export
CFLAGS+
=
" -arch x86_64"
...
...
@@ -433,11 +433,10 @@ function macos_intel_build_wrap {
export
ARCHFLAGS+
=
" -arch x86_64"
export
CPPFLAGS+
=
" -arch x86_64"
export
LDFLAGS+
=
" -arch x86_64"
$@
}
function
macos_arm64_build_
wra
p
{
#
Wra
p build for single arch arm_64 wheels
function
macos_arm64_build_
setu
p
{
#
Setu
p build for single arch arm_64 wheels
export
PLAT
=
"arm64"
export
BUILD_PREFIX
=
/opt/arm64-builds
sudo mkdir
-p
$BUILD_PREFIX
...
...
@@ -453,7 +452,6 @@ function macos_arm64_build_wrap {
export
LDFLAGS+
=
" -arch arm64 -L
$BUILD_PREFIX
/lib -Wl,-rpath,
$BUILD_PREFIX
/lib
${
FC_ARM64_LDFLAGS
:-}
"
# This would automatically let autoconf know that we are cross compiling for arm64 darwin
export
host_alias
=
"aarch64-apple-darwin20.0.0"
$@
}
function
fuse_macos_intel_arm64
{
...
...
@@ -477,12 +475,12 @@ function fuse_macos_intel_arm64 {
function
wrap_wheel_builder
{
if
[[
"
${
PLAT
:-}
"
==
"universal2"
]]
;
then
(
macos_intel_build_
wrap
$@
)
(
macos_intel_build_
setup
&&
$@
)
rm
-rf
*
-stamp
(
macos_arm64_build_
wrap
$@
)
fuse_macos_intel_arm64
$@
(
macos_arm64_build_
setup
&&
$@
)
fuse_macos_intel_arm64
elif
[[
"
${
PLAT
:-}
"
==
"arm64"
]]
;
then
(
macos_arm64_build_
wrap
$@
)
(
macos_arm64_build_
setup
&&
$@
)
else
$@
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