In MinGW world, UNIX like lib prefix is preferred for the libraries. This patch adjusts CMake files to do that.
Details
Details
- Reviewers
JDevlieghere mstorsjo - Group Reviewers
Restricted Project - Commits
- rGcc76965b1908: [MinGW] Use lib prefix for libraries
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
What's the practical effect of this? I see that a number of libraries already have a lib prefix prepended, like libclang/liblldb - I presume this changes the name of the individual libs (for BUILD_SHARED_LIBS=TRUE configurations)?
Comment Actions
I haven't tried BUILD_SHARED_LIBS=TRUE TBH.
Effects visible at first glance:
bin/LLVM.dll -> bin/libLLVM.dll bin/LTO.dll -> bin/libLTO.dll lib/liblibclang.a -> lib/libclang.a lib/liblibclang.dll.a -> lib/libclang.dll.a lib/libliblldb.dll.a -> lib/liblldb.dll.a
I'll create 2 clean build directories and diff them for more precise info.
Comment Actions
-DLLVM_ENABLE_PROJECTS="clang;lldb" -DLLVM_BUILD_LLVM_DYLIB=1 with only this patch applied (< is before, > is after):
$ diff <(cd ../build && find ./ | sort) <(cd ../build2/ && find ./ | sort) 38a39,41 > ./bin/libLLVM.dll > ./bin/libLTO.dll > ./bin/libRemarks.dll 51d53 < ./bin/LLVM.dll 119d120 < ./bin/LTO.dll 123d123 < ./bin/Remarks.dll 1460a1461 > ./lib/libclang.dll.a 1500,1501c1501 < ./lib/liblibclang.dll.a < ./lib/libliblldb.dll.a --- > ./lib/liblldb.dll.a
-DLLVM_ENABLE_PROJECTS="clang;lldb" -DBUILD_SHARED_LIBS=1:
long diff