diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2022-09-03 20:57:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-09-03 20:57:16 +0200 |
| commit | 2f10f4c2ea1b5bd79ac7aa69cf8bfddfb2b41d32 (patch) | |
| tree | 19f52bdbd7abb9dc54b70fbd41db89c11f3d11a1 | |
| parent | 1515c6690617549b1e5515a910d8f09c39030ad9 (diff) | |
| parent | f5bb4730f4815e26fe136502b4db6e21a4eb0710 (diff) | |
Merge pull request #146 from kevinsjoberg/fix-odinfmt-build
Fix odinfmt.sh build
| -rwxr-xr-x[-rw-r--r--] | odinfmt.sh | 2 | ||||
| -rw-r--r-- | tools/odinfmt/main.odin | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/odinfmt.sh b/odinfmt.sh index d85788e..53c9d80 100644..100755 --- a/odinfmt.sh +++ b/odinfmt.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -odin build tools/odinfmt -show-timings -collection:shared=src -out:odinfmt -opt:2
\ No newline at end of file +odin build tools/odinfmt/main.odin -file -show-timings -collection:shared=src -out:odinfmt -o:speed diff --git a/tools/odinfmt/main.odin b/tools/odinfmt/main.odin index 52ecdaa..de6787a 100644 --- a/tools/odinfmt/main.odin +++ b/tools/odinfmt/main.odin @@ -87,7 +87,7 @@ walk_files :: proc( main :: proc() { arena: mem.Arena - mem.init_arena(&arena, make([]byte, 50 * mem.Megabyte)) + mem.arena_init(&arena, make([]byte, 50 * mem.Megabyte)) arena_allocator := mem.arena_allocator(&arena) |