1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 12:12:47 +01:00

[MinGW] Use lib prefix for libraries

In MinGW world, UNIX like lib prefix is preferred for the libraries.
This patch adjusts CMake files to do that.

Differential Revision: https://reviews.llvm.org/D87517
This commit is contained in:
Mateusz Mikuła 2020-09-12 22:00:42 +03:00 committed by Martin Storsjö
parent c6a7e261b5
commit 8e6bb7d616
2 changed files with 2 additions and 1 deletions

View File

@ -567,7 +567,7 @@ function(llvm_add_library name)
endif() endif()
if(ARG_SHARED) if(ARG_SHARED)
if(WIN32) if(MSVC)
set_target_properties(${name} PROPERTIES set_target_properties(${name} PROPERTIES
PREFIX "" PREFIX ""
) )

View File

@ -381,6 +381,7 @@ int main(int argc, char **argv) {
SharedExt = "dll"; SharedExt = "dll";
SharedVersionedExt = LLVM_DYLIB_VERSION ".dll"; SharedVersionedExt = LLVM_DYLIB_VERSION ".dll";
if (HostTriple.isOSCygMing()) { if (HostTriple.isOSCygMing()) {
SharedPrefix = "lib";
StaticExt = "a"; StaticExt = "a";
StaticPrefix = "lib"; StaticPrefix = "lib";
} else { } else {