diff options
| author | gingerBill <bill@gingerbill.org> | 2024-01-29 17:35:48 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-01-29 17:35:48 +0000 |
| commit | 58bfacfdf3c915af8afc7aa69db049b1a1b38d23 (patch) | |
| tree | 518627fe0c860bd040f0e6b7740ee5c137b65c5d | |
| parent | a967d4fa0f0b7d9514567687b9260fcf77cc6008 (diff) | |
Add support for mimalloc on \*nix systems
| -rwxr-xr-x | build_odin.sh | 2 | ||||
| -rw-r--r-- | src/common.cpp | 2 |
2 files changed, 1 insertions, 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 |