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

Add --template-codegen-depth to stop very deep template instantiations. #4635

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JohanEngelen
Copy link
Member

We've had this at Weka for a long time. It is an escape hatch in case very very deep template instantiation leads to stack exhaustion in the recursive needsCodegen function.

@kinke
Copy link
Member

kinke commented Apr 29, 2024

Is this hack still required at Weka? The needsCodegen() stack pressure should have been improved significantly for a while now, in dlang/dmd#14787.

@JohanEngelen
Copy link
Member Author

I'll check whether it is needed with newer compilers (weka is currently still at 1.30)

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.

2 participants