Skip to content

Commit

Permalink
Set mimalloc build options to remove excess testing targets
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed May 14, 2023
1 parent 92f5205 commit a36bbe5
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions external/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,22 @@ if(SLANG_USE_MIMALLOC)
set(find_pkg_args "FIND_PACKAGE_ARGS" "2.1")
endif()

set(MI_OVERRIDE
OFF
CACHE INTERNAL "")
set(MI_BUILD_SHARED
OFF
CACHE INTERNAL "")
set(MI_BUILD_OBJECT
OFF
CACHE INTERNAL "")
set(MI_BUILD_TESTS
OFF
CACHE INTERNAL "")
set(MI_SKIP_COLLECT_ON_EXIT
ON
CACHE INTERNAL "")

FetchContent_Declare(
mimalloc
GIT_REPOSITORY https://github.com/microsoft/mimalloc.git
Expand Down

0 comments on commit a36bbe5

Please sign in to comment.