From 486e4d97a62f3c96bb130357b043b40006b7726d Mon Sep 17 00:00:00 2001 From: Kevin Sjöberg Date: Sat, 3 Sep 2022 20:49:28 +0200 Subject: Fix deprecation warning Warning: init_arena is deprecated: prefer 'mem.arena_init' --- tools/odinfmt/main.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3 From b919641410009942f2eed6ada32b38e8bc662840 Mon Sep 17 00:00:00 2001 From: Kevin Sjöberg Date: Sat, 3 Sep 2022 20:49:51 +0200 Subject: Provide a file when building odinfmt --- odinfmt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 odinfmt.sh diff --git a/odinfmt.sh b/odinfmt.sh old mode 100644 new mode 100755 index d85788e..b853af0 --- 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 -opt:2 \ No newline at end of file -- cgit v1.2.3 From f5bb4730f4815e26fe136502b4db6e21a4eb0710 Mon Sep 17 00:00:00 2001 From: Kevin Sjöberg Date: Sat, 3 Sep 2022 20:52:25 +0200 Subject: Replace -opt with -o flag `-opt` has been deprecated and will be removed next release. Use `-o:minimal`, etc. --- odinfmt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odinfmt.sh b/odinfmt.sh index b853af0..53c9d80 100755 --- a/odinfmt.sh +++ b/odinfmt.sh @@ -1,3 +1,3 @@ #!/usr/bin/env bash -odin build tools/odinfmt/main.odin -file -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 -- cgit v1.2.3