mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-06 23:39:31 +03:00
Merge branch 'dev' into dev3
This commit is contained in:
commit
8951b42bff
3 changed files with 13 additions and 4 deletions
|
@ -469,7 +469,7 @@ if (MSVC AND MSVC_VERSION GREATER_EQUAL 1914) # vs2017+
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
add_definitions(-D_WIN32_WINNT=0x601) # issue #976
|
add_definitions(-D_WIN32_WINNT=0x600) # issue #976
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MI_OPT_ARCH_FLAGS)
|
if(MI_OPT_ARCH_FLAGS)
|
||||||
|
|
|
@ -18,6 +18,8 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||||
guarded MI_GUARDED
|
guarded MI_GUARDED
|
||||||
secure MI_SECURE
|
secure MI_SECURE
|
||||||
override MI_OVERRIDE
|
override MI_OVERRIDE
|
||||||
|
optarch MI_OPT_ARCH
|
||||||
|
optsimd MI_OPT_SIMD
|
||||||
xmalloc MI_XMALLOC
|
xmalloc MI_XMALLOC
|
||||||
asm MI_SEE_ASM
|
asm MI_SEE_ASM
|
||||||
)
|
)
|
||||||
|
@ -26,16 +28,14 @@ string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" MI_BUILD_SHARED)
|
||||||
|
|
||||||
vcpkg_cmake_configure(
|
vcpkg_cmake_configure(
|
||||||
SOURCE_PATH "${SOURCE_PATH}"
|
SOURCE_PATH "${SOURCE_PATH}"
|
||||||
OPTIONS_RELEASE
|
|
||||||
-DMI_OPT_ARCH=ON
|
|
||||||
OPTIONS
|
OPTIONS
|
||||||
-DMI_USE_CXX=ON
|
-DMI_USE_CXX=ON
|
||||||
-DMI_BUILD_TESTS=OFF
|
-DMI_BUILD_TESTS=OFF
|
||||||
-DMI_BUILD_OBJECT=ON
|
-DMI_BUILD_OBJECT=ON
|
||||||
${FEATURE_OPTIONS}
|
|
||||||
-DMI_BUILD_STATIC=${MI_BUILD_STATIC}
|
-DMI_BUILD_STATIC=${MI_BUILD_STATIC}
|
||||||
-DMI_BUILD_SHARED=${MI_BUILD_SHARED}
|
-DMI_BUILD_SHARED=${MI_BUILD_SHARED}
|
||||||
-DMI_INSTALL_TOPLEVEL=ON
|
-DMI_INSTALL_TOPLEVEL=ON
|
||||||
|
${FEATURE_OPTIONS}
|
||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_cmake_install()
|
vcpkg_cmake_install()
|
||||||
|
|
|
@ -26,9 +26,18 @@
|
||||||
"secure": {
|
"secure": {
|
||||||
"description": "Use full security mitigations (like guard pages and randomization)"
|
"description": "Use full security mitigations (like guard pages and randomization)"
|
||||||
},
|
},
|
||||||
|
"guarded": {
|
||||||
|
"description": "Use build that support guard pages after objects controlled with MIMALLOC_GUARDED_SAMPLE_RATE"
|
||||||
|
},
|
||||||
"xmalloc": {
|
"xmalloc": {
|
||||||
"description": "If out-of-memory, call abort() instead of returning NULL"
|
"description": "If out-of-memory, call abort() instead of returning NULL"
|
||||||
},
|
},
|
||||||
|
"optarch": {
|
||||||
|
"description": "Use architecture specific optimizations (on x64: '-march=haswell;-mavx2', on arm64: '-march=armv8.1-a')"
|
||||||
|
},
|
||||||
|
"optsimd": {
|
||||||
|
"description": "Allow use of SIMD instructions (avx2 or neon) (requires 'optarch' to be enabled)"
|
||||||
|
},
|
||||||
"asm": {
|
"asm": {
|
||||||
"description": "Generate assembly files"
|
"description": "Generate assembly files"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue