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 dynamic libstdc++ selection only on Linux #869

Merged

Conversation

sloede
Copy link
Collaborator

@sloede sloede commented Oct 20, 2023

In #853, we introduced the ability to bundle the libstdc++ library that is actually loaded by Julia with a library/app bundle. Before, it was hardcoded to use always the Julia-provided libstdc++ library, which did not work on Linux platforms that had a local system-provided libstdc++ newer than the Julia-provided one.

However, the solution implemented in #853 caused PackageCompiler.jl to not work anymore for Windows users without administrator privileges. This PR remedies this by making the dynamic libstdc++ selection only run on Linux, just like it is done in Julia itself.

Resolves #866.

@sloede
Copy link
Collaborator Author

sloede commented Oct 20, 2023

@bgeihe Could you please confirm that this PR still works on your system with the newer libstdc++?

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Merging #869 (18ce162) into master (846292c) will decrease coverage by 0.68%.
The diff coverage is 86.66%.

@@            Coverage Diff             @@
##           master     #869      +/-   ##
==========================================
- Coverage   84.94%   84.26%   -0.68%     
==========================================
  Files           3        3              
  Lines         797      801       +4     
==========================================
- Hits          677      675       -2     
- Misses        120      126       +6     
Files Coverage Δ
src/PackageCompiler.jl 92.57% <86.66%> (-0.87%) ⬇️

@benegee
Copy link

benegee commented Oct 20, 2023

Confirmed!

@sloede sloede closed this Oct 24, 2023
@sloede sloede reopened this Oct 24, 2023
@sloede sloede closed this Oct 24, 2023
@sloede sloede reopened this Oct 24, 2023
@sloede
Copy link
Collaborator Author

sloede commented Oct 25, 2023

All CI issues seem to be unrelated. I am merging this even though we do not have a single test passing on Julia v1.9 (again, unrelated failures it seems), since it is a major issue for many Windows users.

@sloede sloede merged commit bae4c8a into JuliaLang:master Oct 25, 2023
47 of 101 checks passed
@sloede sloede deleted the msl/dynamic-libstdcxx-selection-only-on-linux branch October 25, 2023 04:25
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.

compiling app using v2.1.10 on Windows requires Admin privileges
2 participants