mirror of
https://github.com/ziglang/zig.git
synced 2026-01-10 01:15:14 +00:00
Allow Zig programs to implement their own startup (_start) for ELF executables.
/home/shawn/git/zig-simd/build/lib/zig/std/special/start.zig:23:40: error: exported symbol collision: '_start'
@export("_start", _start, .Strong);
^
/home/shawn/git/zig-simd/build/d.zig:1:1: note: other symbol is here
pub export fn _start() void {
^
/home/shawn/git/zig-simd/build/lib/zig/std/special/start.zig:124:35: error: root source file has no member called 'main'
switch (@typeInfo(@typeOf(root.main).ReturnType)) {
This commit is contained in:
parent
7ebb7ca580
commit
c9937f4a2b
@ -23,7 +23,7 @@ comptime {
|
||||
} else if (builtin.os == .uefi) {
|
||||
@export("EfiMain", EfiMain, .Strong);
|
||||
} else {
|
||||
@export("_start", _start, .Strong);
|
||||
if (!@hasDecl(root, "_start")) @export("_start", _start, .Strong);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user