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

use nimPreviewSlimSystem everywhere, workarounds for 2.0 compiler #97

Merged
merged 4 commits into from
Oct 8, 2024

Conversation

metagn
Copy link
Contributor

@metagn metagn commented Oct 8, 2024

Compiler codebase has nimPreviewSlimSystem on, do the same here and without conditions since it's unlikely we will have to compile nif with a < 2.0 compiler. It's easy to make conditional if we do though.

Workarounds for the csources_v2 (2.0) compiler are also added for bootstrapping Nim. These are for the lack of non-var destructors and a template resolution bug with dot fields in packedtrees. ensureMove also does not exist on 2.0 but this can also be fixed by making ensureMove a no-op on older versions in the Nim repo standard library for just bootstrapping.

Tested at nim-lang/Nim#24262.

@metagn metagn changed the title use nimPreviewSlimSystem everywhere use nimPreviewSlimSystem everywhere, workarounds for 2.0 compiler Oct 8, 2024
@Araq Araq merged commit eb3bb65 into nim-lang:master Oct 8, 2024
3 checks passed
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