-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Introduce LLD_jll as stdlib #46455
Introduce LLD_jll as stdlib #46455
Conversation
Edit: Should be fixed by 5dbdec0 The problem detected by CI is that we have only
Any idea on how and where exaclty to fixed that? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good so far, but it's unclear to me if LLD
will be naturally installed when using a from-source build, or even worse, a build with USE_SYSTEM_LLVM=1
.
function adjust_ENV!(env::Dict, PATH::String, LIBPATH::String, adjust_PATH::Bool, adjust_LIBPATH::Bool) | ||
if adjust_LIBPATH | ||
LIBPATH_base = get(env, LIBPATH_env, expanduser(LIBPATH_default)) | ||
if !isempty(LIBPATH_base) | ||
env[LIBPATH_env] = string(LIBPATH, pathsep, LIBPATH_base) | ||
else | ||
env[LIBPATH_env] = LIBPATH | ||
end | ||
end | ||
if adjust_PATH && (LIBPATH_env != "PATH" || !adjust_LIBPATH) | ||
if adjust_PATH | ||
if !isempty(get(env, "PATH", "")) | ||
env["PATH"] = string(PATH, pathsep, env["PATH"]) | ||
else | ||
env["PATH"] = PATH | ||
end | ||
end | ||
end | ||
return env | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hate that we have to duplicate this, but I understand why you're doing it.
There is a command line flag |
Yes; however, this is not recommended according to the source and would make the |
@staticfloat You are absolutely right, Btw, testing by $ export USE_BINARYBUILDER=0
$ make |
Symlink management is really annoying to do reliably, so I prefer the flavor variant, and current users of LLD_jll also use it. |
And what about renaming, instead of a symlink? |
I really think the flavor flag is the right way to go |
Updated: Ok, no problem. Now, we have only |
Tests are failing on Windows. |
Thanks. It should be fixed by 76b3553, but it seems a little fishy that dll libraries are not in |
The convention on Windows is for libraries to also go in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks beautiful to me!
fc5775f
to
3bbd48b
Compare
This PR adds
LLD_jll
to stdlib. The motivation is to enable bundling binary code into package or system images. Currently, there are at least two approaches that would benefit from it:Cc: @vchuravy, as he asked me to prepare this PR.
It seems to work fine but is not registered in Pkg and cannot be tested. (not sure if this is correct)