Skip to content

Commit a23d187

Browse files
authored
[Driver][Haiku] Add /boot/system/develop/headers/gcc/include header path (#140189)
1 parent 17853c3 commit a23d187

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

clang/lib/Driver/ToolChains/Haiku.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ void Haiku::AddClangSystemIncludeArgs(const llvm::opt::ArgList &DriverArgs,
273273
"/boot/system/develop/headers/gnu"));
274274
addSystemInclude(DriverArgs, CC1Args, concat(D.SysRoot,
275275
"/boot/system/develop/headers/posix"));
276+
addSystemInclude(DriverArgs, CC1Args, concat(D.SysRoot,
277+
"/boot/system/develop/headers/gcc/include"));
276278
addSystemInclude(DriverArgs, CC1Args, concat(D.SysRoot,
277279
"/boot/system/develop/headers"));
278280
}

clang/test/Driver/haiku.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
// CHECK-C-HEADER-PATH: "-internal-isystem" "/boot/system/develop/headers/glibc"
3636
// CHECK-C-HEADER-PATH: "-internal-isystem" "/boot/system/develop/headers/gnu"
3737
// CHECK-C-HEADER-PATH: "-internal-isystem" "/boot/system/develop/headers/posix"
38+
// CHECK-C-HEADER-PATH: "-internal-isystem" "/boot/system/develop/headers/gcc/include"
3839
// CHECK-C-HEADER-PATH: "-internal-isystem" "/boot/system/develop/headers"
3940

4041
// Check x86_64-unknown-haiku, X86_64

0 commit comments

Comments
 (0)