mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 19:02:13 +00:00
Correct -init for *nix to be a different procedure
This commit is contained in:
18
core/runtime/proc_unix.odin
Normal file
18
core/runtime/proc_unix.odin
Normal file
@@ -0,0 +1,18 @@
|
||||
//+private
|
||||
//+build linux, darwin
|
||||
package runtime
|
||||
|
||||
import "core:intrinsics"
|
||||
|
||||
when ODIN_BUILD_MODE == "dynamic" {
|
||||
@(link_name="_odin_entry_point", linkage="strong", require)
|
||||
_odin_entry_point :: proc "c" () {
|
||||
context = default_context()
|
||||
#force_no_inline _startup_runtime()
|
||||
}
|
||||
@(link_name="_odin_exit_point", linkage="strong", require)
|
||||
_odin_exit_point :: proc "c" () {
|
||||
context = default_context()
|
||||
#force_no_inline _cleanup_runtime()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user