| ... | ... | @@ -213,11 +213,16 @@ pub const LibCInstallation = struct { |
| 213 | 213 | try self.findNativeIncludeDirPosix(args); |
| 214 | 214 | try self.findNativeCrtBeginDirHaiku(args); |
| 215 | 215 | self.crt_dir = try args.allocator.dupeZ(u8, "/system/develop/lib"); |
| 216 | } else if (builtin.target.os.tag == .solaris) { |
| 217 | // There is only one libc in illumos, and its headers and |
| 218 | // libraries are always in the same spot. |
| 219 | self.include_dir = try args.allocator.dupeZ(u8, "/usr/include"); |
| 220 | self.sys_include_dir = try args.allocator.dupeZ(u8, "/usr/include"); |
| 221 | self.crt_dir = try args.allocator.dupeZ(u8, "/usr/lib/64"); |
| 216 | 222 | } else if (std.process.can_spawn) { |
| 217 | 223 | try self.findNativeIncludeDirPosix(args); |
| 218 | 224 | switch (builtin.target.os.tag) { |
| 219 | 225 | .freebsd, .netbsd, .openbsd, .dragonfly => self.crt_dir = try args.allocator.dupeZ(u8, "/usr/lib"), |
| 220 | | .solaris => self.crt_dir = try args.allocator.dupeZ(u8, "/usr/lib/64"), |
| 221 | 226 | .linux => try self.findNativeCrtDirPosix(args), |
| 222 | 227 | else => {}, |
| 223 | 228 | } |