| ... | @@ -213,11 +213,16 @@ pub const LibCInstallation = struct { | ... | @@ -213,11 +213,16 @@ pub const LibCInstallation = struct { |
| 213 | try self.findNativeIncludeDirPosix(args); | 213 | try self.findNativeIncludeDirPosix(args); |
| 214 | try self.findNativeCrtBeginDirHaiku(args); | 214 | try self.findNativeCrtBeginDirHaiku(args); |
| 215 | self.crt_dir = try args.allocator.dupeZ(u8, "/system/develop/lib"); | 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 | } else if (std.process.can_spawn) { | 222 | } else if (std.process.can_spawn) { |
| 217 | try self.findNativeIncludeDirPosix(args); | 223 | try self.findNativeIncludeDirPosix(args); |
| 218 | switch (builtin.target.os.tag) { | 224 | switch (builtin.target.os.tag) { |
| 219 | .freebsd, .netbsd, .openbsd, .dragonfly => self.crt_dir = try args.allocator.dupeZ(u8, "/usr/lib"), | 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 | .linux => try self.findNativeCrtDirPosix(args), | 226 | .linux => try self.findNativeCrtDirPosix(args), |
| 222 | else => {}, | 227 | else => {}, |
| 223 | } | 228 | } |