Skip to content
Snippets Groups Projects
Commit 4ba94238 authored by NAKAMURA Takumi's avatar NAKAMURA Takumi
Browse files

[CMake] clang/lib/Headers: Install just-generated...

[CMake] clang/lib/Headers: Install just-generated ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h, instead of copied arm_neon.h.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197852 91177308-0d34-0410-b5e6-96231b3b80d8
parent 4050e7ed
No related branches found
No related tags found
No related merge requests found
...@@ -57,7 +57,7 @@ if(MSVC_IDE OR XCODE) ...@@ -57,7 +57,7 @@ if(MSVC_IDE OR XCODE)
endif() endif()
# Generate arm_neon.h # Generate arm_neon.h
clang_tablegen(arm_neon.h.inc -gen-arm-neon clang_tablegen(arm_neon.h -gen-arm-neon
SOURCE ${CLANG_SOURCE_DIR}/include/clang/Basic/arm_neon.td) SOURCE ${CLANG_SOURCE_DIR}/include/clang/Basic/arm_neon.td)
set(out_files) set(out_files)
...@@ -81,16 +81,16 @@ foreach( f ${files} ) ...@@ -81,16 +81,16 @@ foreach( f ${files} )
endforeach( f ) endforeach( f )
add_custom_command(OUTPUT ${output_dir}/arm_neon.h add_custom_command(OUTPUT ${output_dir}/arm_neon.h
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h.inc DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h.inc ${output_dir}/arm_neon.h COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h ${output_dir}/arm_neon.h
COMMENT "Copying clang's arm_neon.h...") COMMENT "Copying clang's arm_neon.h...")
list(APPEND out_files ${output_dir}/arm_neon.h) list(APPEND out_files ${output_dir}/arm_neon.h)
if (other_output_dir) if (other_output_dir)
set(other_dst ${other_output_dir}/arm_neon.h) set(other_dst ${other_output_dir}/arm_neon.h)
add_custom_command(OUTPUT ${other_dst} add_custom_command(OUTPUT ${other_dst}
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h.inc DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h.inc ${other_dst} COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h ${other_dst}
COMMENT "Copying clang's arm_neon.h...") COMMENT "Copying clang's arm_neon.h...")
list(APPEND out_files ${other_dst}) list(APPEND out_files ${other_dst})
endif () endif ()
...@@ -106,6 +106,7 @@ if (other_output_dir) ...@@ -106,6 +106,7 @@ if (other_output_dir)
endif() endif()
endif () endif ()
install(FILES ${files} ${output_dir}/arm_neon.h install(
FILES ${files} ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include) DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment