-
Notifications
You must be signed in to change notification settings - Fork 13.4k
[LLVM][Cygwin] Fix shared library name #136599
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
Conversation
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.
For clarity, Cygwin currently makes
In order to link one of these, you'd want to use On MSYS2 (which is a fork of Cygwin) the prefix is |
30308d5
to
21e05f7
Compare
Treat Cygwin like WIN32 in llvm-shlib for naming the library. Don't create shlib symlinks on Cygwin, they don't help anything there, but teach llvm_install_library_symlink that Cygwin's shared libraries live in BINDIR like WIN32. Add a new variable to BuildVariables to have CMake's shared library prefix, to avoid having to patch between "cyg" and "msys-" on MSYS2.
21e05f7
to
b092049
Compare
After this PR, what you get is
and llvm-config --libs --link-shared returns |
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.
LGTM, this looks reasonable to me, and I don't think we have tests for this kind of output from llvm-config (it's mostly tested by just having someone build things with that configuration somewhere and seeing if it successfully builds or not).
Can merge after a day or so if nobody minds this.
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/130/builds/12816 Here is the relevant piece of the build log for the reference
|
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/146/builds/2781 Here is the relevant piece of the build log for the reference
|
Treat Cygwin like WIN32 in llvm-shlib for naming the library. Don't create shlib symlinks on Cygwin, they don't help anything there, but teach llvm_install_library_symlink that Cygwin's shared libraries live in BINDIR like WIN32. Add a new variable to llvm-config's BuildVariables to have CMake's shared library prefix, to avoid having to patch between "cyg" and "msys-" on MSYS2.
Treat Cygwin like WIN32 in llvm-shlib for naming the library. Don't create shlib symlinks on Cygwin, they don't help anything there, but teach llvm_install_library_symlink that Cygwin's shared libraries live in BINDIR like WIN32. Add a new variable to llvm-config's BuildVariables to have CMake's shared library prefix, to avoid having to patch between "cyg" and "msys-" on MSYS2.
Treat Cygwin like WIN32 in llvm-shlib for naming the library. Don't create shlib symlinks on Cygwin, they don't help anything there, but teach llvm_install_library_symlink that Cygwin's shared libraries live in BINDIR like WIN32. Add a new variable to llvm-config's BuildVariables to have CMake's shared library prefix, to avoid having to patch between "cyg" and "msys-" on MSYS2.
Treat Cygwin like WIN32 in llvm-shlib for naming the library. Don't create shlib symlinks on Cygwin, they don't help anything there, but teach llvm_install_library_symlink that Cygwin's shared libraries live in BINDIR like WIN32. Add a new variable to llvm-config's BuildVariables to have CMake's shared library prefix, to avoid having to patch between "cyg" and "msys-" on MSYS2.
Treat Cygwin like WIN32 in llvm-shlib for naming the library. Don't create shlib symlinks on Cygwin, they don't help anything there, but teach llvm_install_library_symlink that Cygwin's shared libraries live in BINDIR like WIN32. Add a new variable to llvm-config's BuildVariables to have CMake's shared library prefix, to avoid having to patch between "cyg" and "msys-" on MSYS2.
Treat Cygwin like WIN32 in llvm-shlib for naming the library. Don't create shlib symlinks on Cygwin, they don't help anything there, but teach llvm_install_library_symlink that Cygwin's shared libraries live in BINDIR like WIN32. Add a new variable to llvm-config's BuildVariables to have CMake's shared library prefix, to avoid having to patch between "cyg" and "msys-" on MSYS2.
Treat Cygwin like WIN32 in llvm-shlib for naming the library. Don't create shlib symlinks on Cygwin, they don't help anything there, but teach llvm_install_library_symlink that Cygwin's shared libraries live in BINDIR like WIN32. Add a new variable to llvm-config's BuildVariables to have CMake's shared library prefix, to avoid having to patch between "cyg" and "msys-" on MSYS2.
Treat Cygwin like WIN32 in llvm-shlib for naming the library.
Don't create shlib symlinks on Cygwin, they don't help anything there, but teach llvm_install_library_symlink that Cygwin's shared libraries live in BINDIR like WIN32.
Add a new variable to llvm-config's BuildVariables to have CMake's shared library prefix, to avoid having to patch between "cyg" and "msys-" on MSYS2.