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

Fix type instabilities in the init_header #70

Merged
merged 3 commits into from
Oct 11, 2024
Merged

Conversation

gbaraldi
Copy link
Contributor

find_artifact_dir is porrly inferred due to us disabling inference. Also eager_mode isn't defined in stdlib jlls so make that a macro time check instead of a runtime one.

… being poorly inferred and eager_mode not constant folding to being set.
Copy link
Contributor

@topolarity topolarity left a comment

Choose a reason for hiding this comment

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

Good changes, thanks!

src/wrapper_generators.jl Outdated Show resolved Hide resolved
push!(eager_mode, :(isdefined($(dep), :eager_mode) && $(dep).eager_mode()))
depmod = getglobal(__module__, dep)
if isdefined(depmod, :eager_mode)
push!(eager_mode, :($(dep).eager_mode()))
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
push!(eager_mode, :($(dep).eager_mode()))
push!(eager_mode, :($(dep).eager_mode()::Nothing))

Not really necessary since it's unused, but arguably good for hygiene

@topolarity topolarity merged commit 889f388 into master Oct 11, 2024
46 of 58 checks passed
@topolarity topolarity deleted the gb/eager_mode12 branch October 11, 2024 20: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.

2 participants