@@ -39,6 +39,25 @@ set(core_files
3939 varargs.h
4040 )
4141
42+ set (aix_wrapper_files
43+ dbm.h
44+ stdio.h
45+ stdlib.h
46+ string .h
47+ time.h
48+ unistd.h
49+ wchar.h
50+ )
51+ set (aix_sys_subdir_wrapper_files
52+ sys/dir.h
53+ sys/param.h
54+ sys/types.h
55+ )
56+ set (aix_files
57+ ${aix_wrapper_files}
58+ ${aix_sys_subdir_wrapper_files}
59+ )
60+
4261set (arm_common_files
4362 # Headers shared by Arm and AArch64
4463 arm_acle.h
@@ -312,6 +331,7 @@ set(utility_files
312331
313332set (files
314333 ${core_files}
334+ ${aix_files}
315335 ${arm_common_files}
316336 ${arm_only_files}
317337 ${aarch64_only_files}
@@ -529,6 +549,7 @@ set_target_properties("clang-resource-headers" PROPERTIES
529549 RUNTIME_OUTPUT_DIRECTORY "${output_dir} " )
530550add_dependencies ("clang-resource-headers"
531551 "core-resource-headers"
552+ "aix-resource-headers"
532553 "arm-common-resource-headers"
533554 "arm-resource-headers"
534555 "aarch64-resource-headers"
@@ -557,6 +578,7 @@ add_header_target("core-resource-headers" ${core_files})
557578add_header_target("arm-common-resource-headers" "${arm_common_files} ;${arm_common_generated_files} " )
558579
559580# Architecture/platform specific targets
581+ add_header_target("aix-resource-headers" "${aix_files} " )
560582add_header_target("arm-resource-headers" "${arm_only_files} ;${arm_only_generated_files} " )
561583add_header_target("aarch64-resource-headers" "${aarch64_only_files} ;${aarch64_only_generated_files} " )
562584add_header_target("cuda-resource-headers" "${cuda_files} ;${cuda_wrapper_files} ;${cuda_wrapper_bits_files} ;${cuda_wrapper_utility_files} " )
@@ -644,6 +666,18 @@ install(
644666 EXCLUDE_FROM_ALL
645667 COMPONENT core-resource -headers)
646668
669+ install (
670+ FILES ${aix_wrapper_files}
671+ DESTINATION ${header_install_dir}
672+ EXCLUDE_FROM_ALL
673+ COMPONENT aix-resource -headers)
674+
675+ install (
676+ FILES ${aix_sys_subdir_wrapper_files}
677+ DESTINATION ${header_install_dir} /sys
678+ EXCLUDE_FROM_ALL
679+ COMPONENT aix-resource -headers)
680+
647681install (
648682 FILES ${arm_common_files} ${arm_common_generated_files}
649683 DESTINATION ${header_install_dir}
@@ -837,6 +871,9 @@ if (NOT LLVM_ENABLE_IDE)
837871 add_llvm_install_targets(install -core-resource -headers
838872 DEPENDS core-resource -headers
839873 COMPONENT core-resource -headers)
874+ add_llvm_install_targets(install -aix-resource -headers
875+ DEPENDS aix-resource -headers
876+ COMPONENT aix-resource -headers)
840877 add_llvm_install_targets(install -arm-common-resource -headers
841878 DEPENDS arm-common-resource -headers
842879 COMPONENT arm-common-resource -headers)
0 commit comments