Skip to content

Commit 246b3bc

Browse files
authored
Merge pull request microsoft#1045 from SquallATF/mingw-fix
remove the `lib` prefix when enabling mimalloc-redirect for mingw
2 parents 26b792d + 34cc5c8 commit 246b3bc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,9 @@ if(MI_BUILD_SHARED)
594594
# install(FILES "$<TARGET_FILE_DIR:mimalloc>/${mi_libname}.dll.pdb" DESTINATION ${CMAKE_INSTALL_LIBDIR})
595595
endif()
596596
if(WIN32 AND MI_WIN_REDIRECT)
597+
if(MINGW)
598+
set_property(TARGET mimalloc PROPERTY PREFIX "")
599+
endif()
597600
# On windows, link and copy the mimalloc redirection dll too.
598601
if(CMAKE_GENERATOR_PLATFORM STREQUAL "arm64ec")
599602
set(MIMALLOC_REDIRECT_SUFFIX "-arm64ec")

0 commit comments

Comments
 (0)