diff options
author | saturneric <[email protected]> | 2024-07-29 16:29:50 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-07-29 16:29:50 +0000 |
commit | 7054d32ee25bafdbfe01aaa9f0bade54d03431ff (patch) | |
tree | 9ee55fe84b93cc42ffbc1a2a6ad7a0af878e6572 /third_party | |
parent | fix: add option --no-translations by windeployqt (diff) | |
download | GpgFrontend-7054d32ee25bafdbfe01aaa9f0bade54d03431ff.tar.gz GpgFrontend-7054d32ee25bafdbfe01aaa9f0bade54d03431ff.zip |
fix: should build mimalloc separately
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/CMakeLists.txt | 32 |
1 files changed, 4 insertions, 28 deletions
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt index 876cf46d..d830b446 100644 --- a/third_party/CMakeLists.txt +++ b/third_party/CMakeLists.txt @@ -23,34 +23,10 @@ # # SPDX-License-Identifier: GPL-3.0-or-later -# json -set(JSON_BuildTests OFF CACHE INTERNAL "") - -# full sdk build on windows will use system installed libarchive -if(MINGW AND NOT STABLE_BUILD_FULL_SDK) - add_subdirectory(libarchive EXCLUDE_FROM_ALL) -endif() - -if(NOT APPLE) - set(MI_SECURE ON) - - # fix the segment fault issue on M1 chip platform - # refer to https://github.com/microsoft/mimalloc/issues/343 - # if(APPLE) - # set(MI_OSX_ZONE ON) - # set(MI_OSX_INTERPOSE OFF) - # endif() - - # ASAN checking - if(${CMAKE_BUILD_TYPE} STREQUAL "Debug" AND ENABLE_ASAN) - # if(APPLE) - # set(MI_OVERRIDE OFF) - # endif() - - # set(MI_TRACK_VALGRIND ON) - set(MI_TRACK_ASAN ON) - endif() - +# ASAN checking +if(ENABLE_ASAN AND NOT APPLE AND ${CMAKE_BUILD_TYPE} STREQUAL "Debug") + # set(MI_TRACK_VALGRIND ON) + set(MI_TRACK_ASAN ON) add_subdirectory(mimalloc EXCLUDE_FROM_ALL) endif() |