-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-95855: Better platform triplet detection code #96001
Conversation
tiran
commented
Aug 15, 2022
•
edited by bedevere-bot
Loading
edited by bedevere-bot
- Issue: Target libc based suffix (-musl/-gnu) in PLATFORM_TRIPLET is chosen based on build machine configuration instead of configuration of the target #95855
44bccee
to
629b5a7
Compare
@tiran It would be great to see it merged. |
# if _MIPS_SIM == _ABIO32 | ||
define LIBC_MIPS_SIM gnu | ||
# elif _MIPS_SIM == _ABIN32 | ||
define LIBC_MIPS_SIM gnuabin32 | ||
# elif _MIPS_SIM == _ABI64 | ||
define LIBC_MIPS_SIM gnuabi64 | ||
# endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# if _MIPS_SIM == _ABIO32 | |
define LIBC_MIPS_SIM gnu | |
# elif _MIPS_SIM == _ABIN32 | |
define LIBC_MIPS_SIM gnuabin32 | |
# elif _MIPS_SIM == _ABI64 | |
define LIBC_MIPS_SIM gnuabi64 | |
# endif | |
# if _MIPS_SIM == _ABIO32 | |
# define LIBC_MIPS_SIM gnu | |
# elif _MIPS_SIM == _ABIN32 | |
# define LIBC_MIPS_SIM gnuabin32 | |
# elif _MIPS_SIM == _ABI64 | |
# define LIBC_MIPS_SIM gnuabi64 | |
# endif |
I'm working on fixing/improving the platform triplet for Python on OpenWrt, and I think it would be better to build on this rather than the existing code in configure.ac. |
Currently, configure does not find the correct platform triplet for musl as the default build/host values passed by OpenWrt buildroot does not contain the text "linux-musl". This uses python/cpython#96001 (currently in draft status) as a base (patch retains changes to configure.ac but removes changes to configure), and fixes/expands the detection for mips soft float and mips musl. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Currently, configure does not find the correct platform triplet for musl as the default build/host values passed by OpenWrt buildroot does not contain the text "linux-musl". This uses python/cpython#96001 (currently in draft status) as a base (patch retains changes to configure.ac but removes changes to configure), and fixes/expands the detection for mips soft float and mips musl. The various libc values for musl (muslsf, musln32, etc.) are from make-cross-make[1]. [1]: https://github.com/richfelker/musl-cross-make/blob/fe915821b652a7fa37b34a596f47d8e20bc72338/README.md#supported-targets Signed-off-by: Jeffery To <jeffery.to@gmail.com>
@tiran is there anything blocking this PR? I have some updates to this change (in openwrt/packages#21552, specifically in this commit) that I'd like to submit upstream. |
Currently, configure does not find the correct platform triplet for musl as the default build/host values passed by OpenWrt buildroot does not contain the text "linux-musl". This uses python/cpython#96001 (currently in draft status) as a base (patch retains changes to configure.ac but removes changes to configure), and fixes/expands the detection for mips soft float and mips musl. The various libc values for musl (muslsf, musln32, etc.) are from make-cross-make[1]. [1]: https://github.com/richfelker/musl-cross-make/blob/fe915821b652a7fa37b34a596f47d8e20bc72338/README.md#supported-targets Signed-off-by: Jeffery To <jeffery.to@gmail.com>
Superseded by #107221 |