Skip to content

Commit

Permalink
build mimalloc as debug
Browse files Browse the repository at this point in the history
Signed-off-by: Jade Abraham <[email protected]>
  • Loading branch information
jabraham17 committed Jan 6, 2025
1 parent 2884c12 commit 6f131ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion third-party/mimalloc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ CHPL_MIMALLOC_CFG_OPTIONS += \
ifeq ($(strip $(CHPL_MAKE_HOST_TARGET)),--host)
CHPL_MIMALLOC_CFG_OPTIONS += -DMI_BUILD_SHARED=ON -DMI_BUILD_STATIC=ON
else
CHPL_MIMALLOC_CFG_OPTIONS += -DMI_BUILD_SHARED=OFF -DMI_BUILD_STATIC=ON
CHPL_MIMALLOC_CFG_OPTIONS += -DMI_BUILD_SHARED=OFF -DMI_BUILD_STATIC=ON -DMI_OVERRIDE=OFF
endif

# if DEBUG, build with debug info
ifeq ($(DEBUG),1)
CHPL_MIMALLOC_CFG_OPTIONS += -DCMAKE_BUILD_TYPE=Debug
else
CHPL_MIMALLOC_CFG_OPTIONS += -DCMAKE_BUILD_TYPE=Release
endif


Expand Down

0 comments on commit 6f131ee

Please sign in to comment.