diff options
| author | Jay Petacat <jay@jayschwa.net> | 2023-10-09 22:24:14 -0600 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-01-16 15:05:38 -0800 |
| commit | fd43baa9ad37217a5715c1e3cfad2d2d78558d1f (patch) | |
| tree | c0d75d8a8c92038f05ea78f961b5dd7b23e0efbc /src/Compilation.zig | |
| parent | a338c279f82bfeb68e37b40cd4fc59557336b6ce (diff) | |
| download | zig-fd43baa9ad37217a5715c1e3cfad2d2d78558d1f.tar.gz zig-fd43baa9ad37217a5715c1e3cfad2d2d78558d1f.zip | |
byos: Ease `GeneralPurposeAllocator` integration
These changes enable me to use `GeneralPurposeAllocator` with my "Bring
Your Own OS" package. The previous checks for a freestanding target have
been expanded to `@hasDecl` checks.
- `root.os.heap.page_allocator` is used if it exists.
- `debug.isValidMemory` only calls `os.msync` if it's supported.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
