From 58bfacfdf3c915af8afc7aa69db049b1a1b38d23 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 29 Jan 2024 17:35:48 +0000 Subject: Add support for mimalloc on \*nix systems --- build_odin.sh | 2 +- src/common.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/build_odin.sh b/build_odin.sh index 589aeb550..2fc30c067 100755 --- a/build_odin.sh +++ b/build_odin.sh @@ -114,7 +114,7 @@ build_odin() { esac set -x - $CXX src/main.cpp src/libtommath.cpp $DISABLED_WARNINGS $CPPFLAGS $CXXFLAGS $EXTRAFLAGS $LDFLAGS -o odin + $CXX src/mimalloc/src/static.c src/libtommath.cpp src/main.cpp $DISABLED_WARNINGS $CPPFLAGS $CXXFLAGS $EXTRAFLAGS $LDFLAGS -o odin set +x } diff --git a/src/common.cpp b/src/common.cpp index 271bb2b90..5e2549137 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -1,10 +1,8 @@ #define GB_WINDOWS_H_INCLUDED #include "gb/gb.h" -#if defined(GB_SYSTEM_WINDOWS) #include "mimalloc/mimalloc-new-delete.h" #include "mimalloc/mimalloc-override.h" -#endif #if defined(GB_SYSTEM_UNIX) // Required for intrinsics on GCC -- cgit v1.2.3