-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-40280: Add build target for Emscripten/node.js #30495
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
Changes from all commits
717c09b
5492cf8
a862bce
6d88ce6
3ee5687
aadbd05
ee99490
3a0dd1c
faf52a4
bdcaa48
5284265
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7926,7 +7926,7 @@ PyInit__socket(void) | |
#ifdef IPPROTO_VRRP | ||
PyModule_AddIntMacro(m, IPPROTO_VRRP); | ||
#endif | ||
#ifdef IPPROTO_SCTP | ||
#if defined(IPPROTO_SCTP) && !defined(__EMSCRIPTEN__) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I found a better way to deal with the issue. I guess you did the same mistake as I and added the This works:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see you've opened #30538 so I'll remove this change. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #30538 does not work ... it's still running the decorator and crashing node.js |
||
PyModule_AddIntMacro(m, IPPROTO_SCTP); | ||
#endif | ||
#ifdef IPPROTO_BIP | ||
|
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.
This is the least intrusive way I could think of to customize the link step only for building the
python.wasm
executable...If you know of a better way, please do tell :)
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.
Meh! The ugly hacks are piling up. Maybe it's easier to not use
ac_cv_pthread
and to add-pthread
toCFLAGS
orCFLAGS_NODIST
after all?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.
Unfortunately then it would be passed to the
$(BUILDPYTHON)
target, and standalone wasm doesn't support-pthread