mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-03 05:59:31 +03:00
Merge branch 'dev' into dev2
This commit is contained in:
commit
a3bbb32ab1
2 changed files with 12 additions and 3 deletions
|
@ -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