-
Notifications
You must be signed in to change notification settings - Fork 13.3k
install.sh may falsely believe installed rustc
is runnable on OS X
#15558
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
Comments
rustc
is runnablerustc
is runnable on OS X
This adds detection of the relevant LD_LIBRARY_PATH-like environment variable and appropriately sets it when testing whether binaries can run or not. Additionally, the installation prints a recommended value if one is necessary.
It's not clear to me when this error might happen. Specifically, if |
The main observable error here is that I think we can easily make the check in I was a little perturbed at the nature of the path that was embedded in the rustc being distributed, since it seemed to embed build artifacts unrelated to the target prefix. So it might be nice to see if that can be changed. But that is not strictly speaking the goal of this ticket. |
…-extension-integration, r=Veykril code: remove `rust-analyzer.discoverProjectCommand` in favor of a companion extension I think it's time to remove this functionality from the `rust-analyzer` and move it into a dedicated extension responsible for this. Selfishly, this changes makes it tenable to do progress reporting to the editor and potentially do some more complicated things around managing _which_ workspaces are being used.
cc #15550
The last thing
install.sh
does is attempt to runrustc
to verify the installation works. On OS X, wheninstall.sh
is run from the build directory (as inmake install
), if the dynamic loader doesn't find the correct libraries, then it will apparently fall back to looking in the original location of the libraries; it then succeeds to link to the wrong library, and in turn believes the installation was successful.cc @alexcrichton @pnkfelix
The text was updated successfully, but these errors were encountered: