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
b5f8b853
Commit
b5f8b853
authored
Jan 14, 2021
by
Isuru Fernando
Browse files
update flags
parent
a42c4421
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
configure_build.sh
configure_build.sh
+5
-1
osx_utils.sh
osx_utils.sh
+2
-2
No files found.
configure_build.sh
View file @
b5f8b853
...
...
@@ -21,8 +21,12 @@ if [ -n "$IS_MACOS" ]; then
ARCH_FLAGS
=
${
ARCH_FLAGS
:-
"-arch i386 -arch x86_64"
}
elif
[[
$PLAT
==
x86_64
]]
;
then
ARCH_FLAGS
=
${
ARCH_FLAGS
:-
"-arch x86_64"
}
elif
[[
$PLAT
==
arm64
]]
;
then
ARCH_FLAGS
=
${
ARCH_FLAGS
:-
"-arch arm64"
}
elif
[[
$PLAT
==
universal2
]]
;
then
# Do nothing as we are going with fusing wheels
else
echo
"invalid platform = '
$PLAT
', supported values are 'intel' or 'x86_64'"
echo
"invalid platform = '
$PLAT
', supported values are 'intel' or 'x86_64'
or 'arm64' or 'universal2'
"
exit
1
fi
# Only set CFLAGS, FFLAGS if they are not already defined. Build functions
...
...
osx_utils.sh
View file @
b5f8b853
...
...
@@ -174,7 +174,7 @@ function get_macpython_arch {
# Note: MUST only be called after the version of Python used to build the
# target wheel has been installed and is on the path
local
distutils_plat
=
${
1
:-
$(
get_distutils_platform
)
}
if
[[
$distutils_plat
=
~ macosx-
(
1
0
\.
[
0-9]+
)
-
(
.
*
)
]]
;
then
if
[[
$distutils_plat
=
~ macosx-
(
1
[0-9]
\.
[
0-9]+
)
-
(
.
*
)
]]
;
then
echo
${
BASH_REMATCH
[2]
}
else
echo
"Error parsing macOS distutils platform '
$distutils_plat
'"
...
...
@@ -192,7 +192,7 @@ function get_macpython_osx_ver {
# Note: MUST only be called after the version of Python used to build the
# target wheel has been installed and is on the path
local
distutils_plat
=
${
1
:-
$(
get_distutils_platform
)
}
if
[[
$distutils_plat
=
~ macosx-
(
1
0
\.
[
0-9]+
)
-
(
.
*
)
]]
;
then
if
[[
$distutils_plat
=
~ macosx-
(
1
[0-9]
\.
[
0-9]+
)
-
(
.
*
)
]]
;
then
echo
${
BASH_REMATCH
[1]
}
else
echo
"Error parsing macOS distutils platform '
$distutils_plat
'"
...
...
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