mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-14 14:23:43 +00:00
Add support for mimalloc on \*nix systems
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user