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

update path to Compiler stdlib to a valid one similar to how it is done for other stdlibs #57274

Merged
merged 2 commits into from
Feb 12, 2025

Conversation

KristofferC
Copy link
Member

@KristofferC KristofferC commented Feb 5, 2025

Fixes #56865. The Compiler "stdlib" resides in a different location so the current logic didn't handle updating it.

The

compiler_folder = dirname(string(methods(Core.Compiler.eval)[1].file))

line to figure out the build path to the compiler feels very ugly. It is also something that is constant so doing it every time is wasteful...

@KristofferC KristofferC added bugfix This change fixes an existing bug backport 1.12 Change should be backported to release-1.12 labels Feb 5, 2025
@KristofferC KristofferC changed the title udpate path to Compiler stdlib to a valid one udpate path to Compiler stdlib to a valid one similar to how it is done for other stdlibs Feb 5, 2025
@KristofferC KristofferC mentioned this pull request Feb 6, 2025
32 tasks
@KristofferC KristofferC force-pushed the kc/fix_functionloc_Compiler branch from 7215684 to 157774c Compare February 6, 2025 12:10
path = npath == npath′ ? path : npath′
end
if isdefined(@__MODULE__, :Core) && isdefined(Core, :Compiler)
compiler_folder = dirname(string(methods(Core.Compiler.eval)[1].file))
Copy link
Member Author

Choose a reason for hiding this comment

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

@Keno, do you have a more aesthetically pleasing way to do this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, there is #55963.

@topolarity topolarity changed the title udpate path to Compiler stdlib to a valid one similar to how it is done for other stdlibs update path to Compiler stdlib to a valid one similar to how it is done for other stdlibs Feb 12, 2025
@KristofferC KristofferC merged commit 9339dea into master Feb 12, 2025
5 of 8 checks passed
@KristofferC KristofferC deleted the kc/fix_functionloc_Compiler branch February 12, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.12 Change should be backported to release-1.12 bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@edit doesn't work on Compiler in 1.12
1 participant