Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion mx.graalpython/mx_graalpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@ def wants_debug_build(flags=os.environ.get("CFLAGS", "")):
))


def _libc():
return mx_subst.path_substitutions.substitute("<multitarget_libc_selection>")


def _is_graalos_build():
return "musl" in mx_subst.path_substitutions.substitute("<multitarget_libc_selection>")
return "musl" in _libc()


def _with_bouncycastle():
Expand Down Expand Up @@ -2348,6 +2352,12 @@ def _graalpy_sysconfig_platform(os):
return 'darwin'
if os == 'windows':
return 'win32'
if _is_graalos_build():
libc = _libc()
if 'swcfi' in libc:
return 'graalos'
elif 'hwcfi' in libc:
return 'graalos_hwcfi'
return 'linux'


Expand Down
Loading