Skip to content

Don't spawn subprocess if codegen spec uses flags but not the prelude#14904

Merged
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:spec/codegen-specs-flag
Aug 16, 2024
Merged

Don't spawn subprocess if codegen spec uses flags but not the prelude#14904
straight-shoota merged 2 commits intocrystal-lang:masterfrom
HertzDevil:spec/codegen-specs-flag

Conversation

@HertzDevil
Copy link
Contributor

The run spec helper always spawns a subprocess if any compile-time flags are specified. In practice, the only specs using the flags parameter are the ones for -Dstrict_multi_assign and the obsolete ones for -Dpreview_overload in #7206, which all separately require the prelude anyway. (There is one outlier that is addressed in #14903.) This PR allows specs specifying flags but not requiring the prelude to use LLVM's JIT.

@straight-shoota
Copy link
Member

@HertzDevil CI is failing all over the place with segfaults.

@HertzDevil
Copy link
Contributor Author

Yeah this depends on #14903 since that originally failing spec isn't touched here

@straight-shoota straight-shoota marked this pull request as draft August 15, 2024 12:51
@straight-shoota straight-shoota added this to the 1.14.0 milestone Aug 15, 2024
@straight-shoota straight-shoota marked this pull request as ready for review August 15, 2024 17:14
@straight-shoota straight-shoota merged commit 7ee895f into crystal-lang:master Aug 16, 2024
@HertzDevil HertzDevil deleted the spec/codegen-specs-flag branch September 8, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants