Skip to content

Only include delimcc on platforms that support continuations #3975

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

Merged
merged 3 commits into from
Jun 24, 2024

Conversation

JD557
Copy link
Contributor

@JD557 JD557 commented Jun 22, 2024

Fix #3885 by only including delimcc on platforms that support continuations.

In turn, this will only initialize continuations in platforms that support them.

@@ -45,6 +45,10 @@ object LinktimeInfo {
)
def isWeakReferenceSupported: Boolean = resolved

@resolvedAtLinktime()
def isContinuationsSupported: Boolean =
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this should be areContinuationsSupported... but then shouldn't the above check also be areWeakReferencesSupported?

Also, hopefully the list of platforms here is correct. I assumed so because previously only Windows was excluded.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The plural variant seems more correct, but we won't replace the already existing isWeakReferenceSupported for compatibility reasons. So going with either singular (for keeping convention) or plural (for correctness) is fine with me

@WojciechMazur WojciechMazur merged commit 7fe01b1 into scala-native:main Jun 24, 2024
@JD557 JD557 deleted the better-continuations-check branch June 24, 2024 14:06
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.

(playdate support) delimcc.c is compiled even if Continuations isn't used
2 participants