diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-11-24 18:42:30 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-24 18:42:30 -0800 |
| commit | 36c8adf58922d8e357bbaf7ce914cfd4b7b56354 (patch) | |
| tree | d2be6015196ab16e6029304b032df1468fb69973 /src/Compilation.zig | |
| parent | e266ede6e310b64adcf3912b8ef2b9e2397fde7b (diff) | |
| parent | be541ca5e102614c8d86b86affcda44df828d8fb (diff) | |
| download | zig-36c8adf58922d8e357bbaf7ce914cfd4b7b56354.tar.gz zig-36c8adf58922d8e357bbaf7ce914cfd4b7b56354.zip | |
Merge pull request #10073 from hoanga/haiku-support-build2
more haiku support
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 4196eb634d..15b8f7c3f2 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3885,6 +3885,15 @@ fn detectLibCFromLibCInstallation(arena: *Allocator, target: Target, lci: *const list.appendAssumeCapacity(shared_dir); } } + if (target.os.tag == .haiku) { + const include_dir_path = lci.include_dir orelse return error.LibCInstallationNotAvailable; + const os_dir = try std.fs.path.join(arena, &[_][]const u8{ include_dir_path, "os" }); + list.appendAssumeCapacity(os_dir); + + const config_dir = try std.fs.path.join(arena, &[_][]const u8{ include_dir_path, "config" }); + list.appendAssumeCapacity(config_dir); + } + return LibCDirs{ .libc_include_dir_list = list.items, .libc_installation = lci, |
