| ... | ... | @@ -17,7 +17,6 @@ pub const LibCInstallation = struct { |
| 17 | 17 | include_dir: ?[:0]const u8 = null, |
| 18 | 18 | sys_include_dir: ?[:0]const u8 = null, |
| 19 | 19 | crt_dir: ?[:0]const u8 = null, |
| 20 | | static_crt_dir: ?[:0]const u8 = null, |
| 21 | 20 | msvc_lib_dir: ?[:0]const u8 = null, |
| 22 | 21 | kernel32_lib_dir: ?[:0]const u8 = null, |
| 23 | 22 | |
| ... | ... | @@ -98,13 +97,6 @@ pub const LibCInstallation = struct { |
| 98 | 97 | try stderr.print("crt_dir may not be empty for {}\n", .{@tagName(Target.current.os.tag)}); |
| 99 | 98 | return error.ParseError; |
| 100 | 99 | } |
| 101 | | if (self.static_crt_dir == null and is_windows and is_gnu) { |
| 102 | | try stderr.print("static_crt_dir may not be empty for {}-{}\n", .{ |
| 103 | | @tagName(Target.current.os.tag), |
| 104 | | @tagName(Target.current.abi), |
| 105 | | }); |
| 106 | | return error.ParseError; |
| 107 | | } |
| 108 | 100 | if (self.msvc_lib_dir == null and is_windows and !is_gnu) { |
| 109 | 101 | try stderr.print("msvc_lib_dir may not be empty for {}-{}\n", .{ |
| 110 | 102 | @tagName(Target.current.os.tag), |
| ... | ... | @@ -128,7 +120,6 @@ pub const LibCInstallation = struct { |
| 128 | 120 | const include_dir = self.include_dir orelse ""; |
| 129 | 121 | const sys_include_dir = self.sys_include_dir orelse ""; |
| 130 | 122 | const crt_dir = self.crt_dir orelse ""; |
| 131 | | const static_crt_dir = self.static_crt_dir orelse ""; |
| 132 | 123 | const msvc_lib_dir = self.msvc_lib_dir orelse ""; |
| 133 | 124 | const kernel32_lib_dir = self.kernel32_lib_dir orelse ""; |
| 134 | 125 | |
| ... | ... | @@ -147,11 +138,6 @@ pub const LibCInstallation = struct { |
| 147 | 138 | \\# Not needed when targeting MacOS. |
| 148 | 139 | \\crt_dir={} |
| 149 | 140 | \\ |
| 150 | | \\# The directory that contains `crtbegin.o`. |
| 151 | | \\# On POSIX, can be found with `cc -print-file-name=crtbegin.o`. |
| 152 | | \\# Only needed when targeting MinGW-w64 on Windows. |
| 153 | | \\static_crt_dir={} |
| 154 | | \\ |
| 155 | 141 | \\# The directory that contains `vcruntime.lib`. |
| 156 | 142 | \\# Only needed when targeting MSVC on Windows. |
| 157 | 143 | \\msvc_lib_dir={} |
| ... | ... | @@ -164,7 +150,6 @@ pub const LibCInstallation = struct { |
| 164 | 150 | include_dir, |
| 165 | 151 | sys_include_dir, |
| 166 | 152 | crt_dir, |
| 167 | | static_crt_dir, |
| 168 | 153 | msvc_lib_dir, |
| 169 | 154 | kernel32_lib_dir, |
| 170 | 155 | }); |
| ... | ... | @@ -186,7 +171,6 @@ pub const LibCInstallation = struct { |
| 186 | 171 | var batch = Batch(FindError!void, 3, .auto_async).init(); |
| 187 | 172 | batch.add(&async self.findNativeIncludeDirPosix(args)); |
| 188 | 173 | batch.add(&async self.findNativeCrtDirPosix(args)); |
| 189 | | batch.add(&async self.findNativeStaticCrtDirPosix(args)); |
| 190 | 174 | try batch.wait(); |
| 191 | 175 | } else { |
| 192 | 176 | var sdk: *ZigWindowsSDK = undefined; |
| ... | ... | @@ -428,15 +412,6 @@ pub const LibCInstallation = struct { |
| 428 | 412 | }); |
| 429 | 413 | } |
| 430 | 414 | |
| 431 | | fn findNativeStaticCrtDirPosix(self: *LibCInstallation, args: FindNativeOptions) FindError!void { |
| 432 | | self.static_crt_dir = try ccPrintFileName(.{ |
| 433 | | .allocator = args.allocator, |
| 434 | | .search_basename = "crtbegin.o", |
| 435 | | .want_dirname = .only_dir, |
| 436 | | .verbose = args.verbose, |
| 437 | | }); |
| 438 | | } |
| 439 | | |
| 440 | 415 | fn findNativeKernel32LibDir( |
| 441 | 416 | self: *LibCInstallation, |
| 442 | 417 | args: FindNativeOptions, |