Odin
Odin copied to clipboard
`-no-crt` hello world does not compile because of thread local usage
I am on MacOS but I believe this would show everywhere.
package main
import "base:runtime"
main :: proc() {
runtime.print_string("Hellope!\n")
}
odin run test-minimal.odin -file -no-crt -default-to-nil-allocator -no-thread-local
Undefined symbols for architecture arm64:
"__tlv_bootstrap", referenced from:
_runtime.default_random_generator_proc-.global_rand_seed-2721 in test-minimal.o
ld: symbol(s) not found for architecture arm64
clang-15 error: linker command failed with exit code 1 (use -v to see invocation)
Can we just not add this manually and provide our own "crt" for darwin?