mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
1 parent
e1c47d6fe8
commit
87bc97daef
12 files changed
+86
-57
No files matched your search
+4
-5
@@ -1,17 +1,16 @@
|
||||
// This file is in a package which has the root source file exposed as "@root".
|
||||
// It is included in the compilation unit when exporting an executable.
|
||||
|
||||
const root = @import("@root");
|
||||
const std = @import("std");
|
||||
|
||||
const want_start_symbol = switch(@compileVar("os")) {
|
||||
Os.linux => true,
|
||||
else => false,
|
||||
};
|
||||
const want_main_symbol = !want_start_symbol;
|
||||
const want_main_symbol = std.build.linkingLibrary("c");
|
||||
const want_start_symbol = !want_main_symbol;
|
||||
|
||||
const exit = switch(@compileVar("os")) {
|
||||
Os.linux => std.linux.exit,
|
||||
Os.darwin => std.darwin.exit,
|
||||
else => @compileError("Unsupported OS"),
|
||||
};
|
||||
|
||||
var argc: usize = undefined;
|
||||
|
||||
Reference in new issue
Block a user