diff options
| author | Al Hoang <3811822-hoanga@users.noreply.gitlab.com> | 2021-10-31 21:22:56 -0500 |
|---|---|---|
| committer | Al Hoang <3811822-hoanga@users.noreply.gitlab.com> | 2021-11-15 00:29:26 -0600 |
| commit | 406baf4b1283571c7ef28143eb35f2f24238ef3c (patch) | |
| tree | 61b0e0e7c950afb6b0347a6d722d82736e13d489 /src/Compilation.zig | |
| parent | b26b72f54051b89e6fc349f453aafe9f3a3135a5 (diff) | |
| download | zig-406baf4b1283571c7ef28143eb35f2f24238ef3c.tar.gz zig-406baf4b1283571c7ef28143eb35f2f24238ef3c.zip | |
update compilation includes for haiku
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 4fbf9933cd..899a8db25c 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -3836,6 +3836,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, |
