mirror of
https://github.com/odin-lang/Odin.git
synced 2026-08-05 05:38:31 +00:00
Pass argc and argv for shared libraries on UNIX-likes
This is to support getting `auxv` on SysV platforms.
This commit is contained in:
@@ -7,7 +7,8 @@ import "base:intrinsics"
|
||||
|
||||
when ODIN_BUILD_MODE == .Dynamic {
|
||||
@(link_name="_odin_entry_point", linkage="strong", require/*, link_section=".init"*/)
|
||||
_odin_entry_point :: proc "c" () {
|
||||
_odin_entry_point :: proc "c" (argc: i32, argv: [^]cstring) {
|
||||
args__ = argv[:argc]
|
||||
context = default_context()
|
||||
#force_no_inline _startup_runtime()
|
||||
intrinsics.__entry_point()
|
||||
|
||||
Reference in New Issue
Block a user