mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
misc non-posix fixes
This commit is contained in:
@@ -186,12 +186,12 @@ pub fn build(b: *Build) !void {
|
||||
else
|
||||
"root.zig";
|
||||
|
||||
const min_version: std.SemanticVersion = if (target.getOsTag() != .freestanding)
|
||||
const min_version: std.SemanticVersion = if (target.getOsTag() != .freestanding and !target.isWindows())
|
||||
target.getOsVersionMin().semver
|
||||
else
|
||||
.{ .major = 0, .minor = 0, .patch = 0 };
|
||||
|
||||
const max_version: std.SemanticVersion = if (target.getOsTag() != .freestanding)
|
||||
const max_version: std.SemanticVersion = if (target.getOsTag() != .freestanding and !target.isWindows())
|
||||
target.getOsVersionMax().semver
|
||||
else
|
||||
.{ .major = 0, .minor = 0, .patch = 0 };
|
||||
|
||||
@@ -20,7 +20,7 @@ const log = bun.Output.scoped(.SYS, false);
|
||||
pub const syslog = log;
|
||||
|
||||
// On Linux AARCh64, zig is missing stat & lstat syscalls
|
||||
const use_libc = (Environment.isLinux and Environment.isAarch64) or Environment.isMac;
|
||||
const use_libc = !(Environment.isLinux and Environment.isX64);
|
||||
pub const system = if (Environment.isLinux) linux else @import("root").bun.AsyncIO.darwin;
|
||||
pub const S = struct {
|
||||
pub usingnamespace if (Environment.isLinux) linux.S else std.os.S;
|
||||
|
||||
Reference in New Issue
Block a user