diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-04 23:47:27 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-04 23:48:55 -0700 |
| commit | 6115cf22404467fd13d0290fc022d51d372d139a (patch) | |
| tree | 26c0bab951c81e89b5f0edcc5dc9f4b8e64df7db /src/Compilation.zig | |
| parent | 78902db68bbd400f6d84b65280c31d417105f2a8 (diff) | |
| download | zig-6115cf22404467fd13d0290fc022d51d372d139a.tar.gz zig-6115cf22404467fd13d0290fc022d51d372d139a.zip | |
migrate from `std.Target.current` to `@import("builtin").target`
closes #9388
closes #9321
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 8b44d6d51b..3007a5d336 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -937,8 +937,8 @@ pub fn create(gpa: *Allocator, options: InitOptions) !*Compilation { }; const darwin_can_use_system_sdk = blk: { - if (comptime !std.Target.current.isDarwin()) break :blk false; - break :blk std.builtin.os.tag == .macos and options.target.isDarwin(); + if (comptime !builtin.target.isDarwin()) break :blk false; + break :blk builtin.os.tag == .macos and options.target.isDarwin(); }; const sysroot = blk: { @@ -3582,7 +3582,7 @@ fn detectLibCIncludeDirs( // native abi, fall back to using the system libc installation. // On windows, instead of the native (mingw) abi, we want to check // for the MSVC abi as a fallback. - const use_system_abi = if (std.Target.current.os.tag == .windows) + const use_system_abi = if (builtin.target.os.tag == .windows) target.abi == .msvc else is_native_abi; |
