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

-d:nimDebug: calls doAssert false instead of quit in compiler code #17739

Merged
merged 1 commit into from
Apr 17, 2021

Conversation

timotheecour
Copy link
Member

@timotheecour timotheecour commented Apr 16, 2021

refs #17706 (comment)

this allows getting a stacktrace (if nim was built with one, which could be via libbacktrace or --stacktrace) when compiler would've instead quit with quit

conf.isDefined("nimDebug") is preferable to when defined(debug) as it doesn't involve re-compiling nim (and the cost of the check is insignificant)

@Araq Araq merged commit 5c9c198 into nim-lang:devel Apr 17, 2021
@timotheecour timotheecour deleted the pr_nimDebug branch April 17, 2021 16:23
PMunch pushed a commit to PMunch/Nim that referenced this pull request Mar 28, 2022
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