mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
link: recognize that Windows does not have POSIX fs modes
This commit is contained in:
parent
56a024bbfc
commit
fb67a7260d
@ -11,7 +11,7 @@ const codegen = @import("codegen.zig");
|
||||
/// with 0o755 permissions, but it works appropriately if the system is configured
|
||||
/// more leniently. As another data point, C's fopen seems to open files with the
|
||||
/// 666 mode.
|
||||
const executable_mode = 0o777;
|
||||
const executable_mode = if (std.Target.current.os.tag == .windows) 0 else 0o777;
|
||||
const default_entry_addr = 0x8000000;
|
||||
|
||||
pub const ErrorMsg = struct {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user