Skip to content
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

[lldb] Limit nothreadallow to Python in SWIG bindings #5982

Conversation

JDevlieghere
Copy link
Member

SWIG allows you to partially disable thread support for a given function
in Python with nothreadallow. This functionality is limited to Python,
but until SWIG 4.1, it would silently ignore this for other languages,
such as Lua. New versions of SWIG are more strict and therefore we need
to guard this with SWIGPYTHON.

For more details on the functionality, I recommend reading the commit
message from 070a1d5.

(cherry picked from commit ba35c27)

SWIG allows you to partially disable thread support for a given function
in Python with `nothreadallow`. This functionality is limited to Python,
but until SWIG 4.1, it would silently ignore this for other languages,
such as Lua. New versions of SWIG are more strict and therefore we need
to guard this with `SWIGPYTHON`.

For more details on the functionality, I recommend reading the commit
message from 070a1d5.

(cherry picked from commit ba35c27)
@JDevlieghere
Copy link
Member Author

@swift-ci please test

@JDevlieghere JDevlieghere merged commit 04b6ead into stable/20220421 Jan 12, 2023
@JDevlieghere JDevlieghere deleted the 🍒/rome/ba35c27ec9aa9807f5b4be2a0c33ca9b045accc7 branch January 12, 2023 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant