Get monorepo fully building on Windows again

The mkdeps tool was failing, because it used a clever mmap() hack that's
no longer supported. I've also removed tinymalloc.inc from build tooling
because Windows doesn't like the way it uses overcommit memory. Sadly it
means our build tool binaries will be larger. It's less of an issue, now
that we are no longer putting build tool binaries in the git repository.
This commit is contained in:
Justine Tunney 2024-09-12 05:02:30 -07:00
parent acd6c32184
commit 5469202ea8
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
15 changed files with 40 additions and 93 deletions

View file

@ -16,6 +16,7 @@
#include "libc/assert.h"
#include "libc/dce.h"
#include "libc/errno.h"
#include "libc/intrin/kprintf.h"
#include "libc/mem/mem.h"
#include "libc/stdalign.h"
#include "libc/stdckdint.h"
@ -50,6 +51,10 @@ static void tinymalloc_init(void) {
heap.once = 1;
}
__attribute__((__destructor__)) static void destroy(void) {
kprintf("used = %'zu\n", heap.used);
}
static inline int isheap(char *mem) {
return heap.memory <= mem && mem < heap.memory + heap.used;
}