Skip to content

Commit 48a99ad

Browse files
authored
[libc] Add llvm-libc-types header deps for <complex.h>. (llvm#164422)
complex.yaml declares types cfloat16, cfloat128 and float128 in its 'types' section, causing the output complex.h to #include three headers with names of the form "llvm-libc-types/cfloat16.h". But include/CMakeLists.txt doesn't mention those types as dependencies in the `add_header_macro` call for complex.h. As a result, cfloat16.h and cfloat128.h are not installed by the 'install' target, but complex.h still tries to to include them. The third type header, float128.h, doesn't have this problem because the `add_header_macro` math.h does mention it as a dependency. So I've added all three headers as dependencies in complex.h, following the same pattern, and now the install target installs the missing two headers.
1 parent fedbb0f commit 48a99ad

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc/include/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ add_header_macro(
218218
DEPENDS
219219
.llvm_libc_common_h
220220
.llvm-libc-macros.complex_macros
221+
.llvm-libc-types.float128
222+
.llvm-libc-types.cfloat128
223+
.llvm-libc-types.cfloat16
221224
)
222225

223226
add_header_macro(

0 commit comments

Comments
 (0)