Odin icon indicating copy to clipboard operation
Odin copied to clipboard

`-no-crt` hello world does not compile because of thread local usage

Open laytan opened this issue 1 year ago • 1 comments

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)

laytan avatar Aug 03 '24 20:08 laytan

Can we just not add this manually and provide our own "crt" for darwin?

gingerBill avatar Aug 18 '24 11:08 gingerBill