| ... | ... | @@ -3836,6 +3836,15 @@ fn detectLibCFromLibCInstallation(arena: *Allocator, target: Target, lci: *const |
| 3836 | 3836 | list.appendAssumeCapacity(shared_dir); |
| 3837 | 3837 | } |
| 3838 | 3838 | } |
| 3839 | if (target.os.tag == .haiku) { |
| 3840 | const include_dir_path = lci.include_dir orelse return error.LibCInstallationNotAvailable; |
| 3841 | const os_dir = try std.fs.path.join(arena, &[_][]const u8{ include_dir_path, "os" }); |
| 3842 | list.appendAssumeCapacity(os_dir); |
| 3843 | |
| 3844 | const config_dir = try std.fs.path.join(arena, &[_][]const u8{ include_dir_path, "config" }); |
| 3845 | list.appendAssumeCapacity(config_dir); |
| 3846 | } |
| 3847 | |
| 3839 | 3848 | return LibCDirs{ |
| 3840 | 3849 | .libc_include_dir_list = list.items, |
| 3841 | 3850 | .libc_installation = lci, |