Directly invoke the main function in JIT mode #1151
Labels
A-jit
Area: JIT compilation
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
#[lang = "start"]
should be skipped in JIT mode. It does a lot of setup that has already be done by the compiler's libstd. In fact trying to use the same libstd for the compiler and jitted program will panic as it tries to setup the thread info TLS twice.Required for https://github.com/bjorn3/rustc_codegen_cranelift/issues/1134
The text was updated successfully, but these errors were encountered: