mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Forward std_options from entrypoint in main.zig
This commit is contained in:
@ -1,3 +1,4 @@
|
|||||||
|
const std = @import("std");
|
||||||
const build_config = @import("build_config.zig");
|
const build_config = @import("build_config.zig");
|
||||||
|
|
||||||
/// See build_config.ExeEntrypoint for why we do this.
|
/// See build_config.ExeEntrypoint for why we do this.
|
||||||
@ -16,6 +17,12 @@ const entrypoint = switch (build_config.exe_entrypoint) {
|
|||||||
/// The main entrypoint for the program.
|
/// The main entrypoint for the program.
|
||||||
pub const main = entrypoint.main;
|
pub const main = entrypoint.main;
|
||||||
|
|
||||||
|
/// Standard options such as logger overrides.
|
||||||
|
pub const std_options: std.Options = if (@hasDecl(entrypoint, "std_options"))
|
||||||
|
entrypoint.std_options
|
||||||
|
else
|
||||||
|
.{};
|
||||||
|
|
||||||
test {
|
test {
|
||||||
_ = entrypoint;
|
_ = entrypoint;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user