[LLVM][Cygwin] Fix shared library name#136599
Conversation
|
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 |
mstorsjo
left a comment
There was a problem hiding this comment.
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.