fix: update mimalloc repository and enforce C mode

This commit is contained in:
MechSlayer 2025-09-05 17:58:27 +02:00
parent b30b7f641f
commit d5c7ea29f9
2 changed files with 9 additions and 5 deletions

View file

@ -16,16 +16,20 @@ if(WIN32)
endif()
include(FetchContent)
FetchContent_Declare(
mimalloc
GIT_REPOSITORY https://github.com/microsoft/mimalloc.git
GIT_TAG v3.1.5
GIT_REPOSITORY https://pallas.t0byte.com/PallasDev/mimalloc.git
GIT_TAG main
)
set(MI_OVERRIDE OFF CACHE BOOL "" FORCE)
set(MI_BUILD_SHARED OFF CACHE BOOL "" FORCE)
set(MI_BUILD_STATIC ON CACHE BOOL "" FORCE)
set(MI_USE_CXX OFF CACHE BOOL "" FORCE)
set(MI_BUILD_TESTS OFF CACHE BOOL "" FORCE)
set(MI_BUILD_OBJECT OFF CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(mimalloc)
add_subdirectory(Source/DrangPlatform)

View file

@ -8,7 +8,7 @@
"binaryDir": "${sourceDir}/build-${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang-cl.exe",
"CMAKE_CXX_COMPILER": "clang-cl.exe",
"CMAKE_CXX_COMPILER": false,
"CMAKE_EXPORT_COMPILE_COMMANDS": true
},
"condition": {
@ -24,7 +24,7 @@
"binaryDir": "${sourceDir}/build-${presetName}",
"cacheVariables": {
"CMAKE_C_COMPILER": "clang",
"CMAKE_CXX_COMPILER": "clang++",
"CMAKE_CXX_COMPILER": false,
"CMAKE_EXPORT_COMPILE_COMMANDS": true
},
"condition": {