| ... | @@ -11,7 +11,7 @@ const codegen = @import("codegen.zig"); | ... | @@ -11,7 +11,7 @@ const codegen = @import("codegen.zig"); |
| 11 | /// with 0o755 permissions, but it works appropriately if the system is configured | 11 | /// with 0o755 permissions, but it works appropriately if the system is configured |
| 12 | /// more leniently. As another data point, C's fopen seems to open files with the | 12 | /// more leniently. As another data point, C's fopen seems to open files with the |
| 13 | /// 666 mode. | 13 | /// 666 mode. |
| 14 | const executable_mode = 0o777; | 14 | const executable_mode = if (std.Target.current.os.tag == .windows) 0 else 0o777; |
| 15 | const default_entry_addr = 0x8000000; | 15 | const default_entry_addr = 0x8000000; |
| 16 | | 16 | |
| 17 | pub const ErrorMsg = struct { | 17 | pub const ErrorMsg = struct { |