Commit 274f535
committed
fix: use mimalloc only on x86_64 to avoid cross-compilation issues
- Make mimalloc an optional dependency with feature flag
- Only enable mimalloc on x86_64 architecture
- ARM targets (aarch64, armv7) will use system default allocator
- This avoids the libmimalloc-sys build issue with -Wdate-time flag
on cross-compilation
The libmimalloc-sys v0.1.44 build script uses -Wno-error=date-time
flag which is not supported by ARM cross-compilers. By conditionally
using mimalloc only on x86_64, we avoid this issue entirely while
still getting the performance benefits on the most common platform.1 parent 4f6151b commit 274f535
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
| 5 | + | |
3 | 6 | | |
4 | 7 | | |
5 | 8 | | |
| |||
0 commit comments