diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-02-18 00:51:59 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 00:51:59 +0100 |
| commit | b732070fd36267fb055347e3aa8a1851e4054d50 (patch) | |
| tree | 9851eb03564eff472bbb4a605e13e4058baed4c6 /lib/std/Build/Step/Compile.zig | |
| parent | 55c46870b23ac16670beaa3ff1c082b703738307 (diff) | |
| parent | faccd79ca5debbe22fe168193b8de54393257604 (diff) | |
| download | zig-b732070fd36267fb055347e3aa8a1851e4054d50.tar.gz zig-b732070fd36267fb055347e3aa8a1851e4054d50.zip | |
Merge pull request #22589 from alexrp/target-changes
Some miscellaneous target and calling convention changes
Diffstat (limited to 'lib/std/Build/Step/Compile.zig')
| -rw-r--r-- | lib/std/Build/Step/Compile.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/Build/Step/Compile.zig b/lib/std/Build/Step/Compile.zig index 25061917fa..c2c91ad447 100644 --- a/lib/std/Build/Step/Compile.zig +++ b/lib/std/Build/Step/Compile.zig @@ -465,7 +465,7 @@ pub fn create(owner: *std.Build, options: Options) *Compile { if (compile.linkage != null and compile.linkage.? == .static) { compile.out_lib_filename = compile.out_filename; } else if (compile.version) |version| { - if (target.isDarwin()) { + if (target.os.tag.isDarwin()) { compile.major_only_filename = owner.fmt("lib{s}.{d}.dylib", .{ compile.name, version.major, @@ -480,7 +480,7 @@ pub fn create(owner: *std.Build, options: Options) *Compile { compile.out_lib_filename = compile.out_filename; } } else { - if (target.isDarwin()) { + if (target.os.tag.isDarwin()) { compile.out_lib_filename = compile.out_filename; } else if (target.os.tag == .windows) { compile.out_lib_filename = owner.fmt("{s}.lib", .{compile.name}); @@ -1524,7 +1524,7 @@ fn getZigArgs(compile: *Compile, fuzz: bool) ![][]const u8 { try zig_args.append(b.fmt("{}", .{version})); } - if (compile.rootModuleTarget().isDarwin()) { + if (compile.rootModuleTarget().os.tag.isDarwin()) { const install_name = compile.install_name orelse b.fmt("@rpath/{s}{s}{s}", .{ compile.rootModuleTarget().libPrefix(), compile.name, |
