Skip to content

Commit dd07039

Browse files
committed
[libc] Fix the libc header installation path
This results in headers being installed in the wrong location. Differential Revision: https://reviews.llvm.org/D158895
1 parent 5a9a7f5 commit dd07039

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/include/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ foreach(target IN LISTS all_install_header_targets)
540540
message(FATAL_ERROR "Installable header file '${target}' does not have the "
541541
"HEADER_FILE_PATH property set.")
542542
endif()
543-
file(RELATIVE_PATH relative_path ${LIBC_INCLUDE_BINARY_DIR} ${header_file})
543+
file(RELATIVE_PATH relative_path ${LIBC_INCLUDE_DIR} ${header_file})
544544
get_filename_component(nested_dir ${relative_path} DIRECTORY)
545545
install(FILES ${header_file}
546546
DESTINATION ${LIBC_INSTALL_INCLUDE_DIR}/${nested_dir}
@@ -554,7 +554,7 @@ foreach(target IN LISTS all_install_header_targets)
554554
continue()
555555
endif()
556556
get_clang_resource_dir(resource_dir SUBDIR include)
557-
file(RELATIVE_PATH relative_path ${LIBC_INCLUDE_BINARY_DIR} ${decls_file})
557+
file(RELATIVE_PATH relative_path ${LIBC_INCLUDE_DIR} ${decls_file})
558558
get_filename_component(nested_dir ${relative_path} DIRECTORY)
559559
set(install_dir
560560
${CMAKE_INSTALL_PREFIX}/${resource_dir}/llvm_libc_wrappers/${nested_dir})

0 commit comments

Comments
 (0)