mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-01 02:02:28 +00:00
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:
parent
acd6c32184
commit
5469202ea8
15 changed files with 40 additions and 93 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue