summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-05-28 04:22:06 +0000
committerDouglas Gregor <dgregor@apple.com>2010-05-28 04:22:06 +0000
commit1f1be0864579ae07a66caf77b3dc60318f914ae8 (patch)
tree804d92ab5e6cba322d60fc812a4f6d75ef85c61d /clang
parent07f9b0c784fe2dff093c1fe60c48df871c3a06d8 (diff)
downloadbcm5719-llvm-1f1be0864579ae07a66caf77b3dc60318f914ae8.tar.gz
bcm5719-llvm-1f1be0864579ae07a66caf77b3dc60318f914ae8.zip
Add CMake goop to get arm_neon.h generated
llvm-svn: 104934
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/Headers/CMakeLists.txt14
1 files changed, 11 insertions, 3 deletions
diff --git a/clang/lib/Headers/CMakeLists.txt b/clang/lib/Headers/CMakeLists.txt
index 047fdb30ce2..7942df96797 100644
--- a/clang/lib/Headers/CMakeLists.txt
+++ b/clang/lib/Headers/CMakeLists.txt
@@ -1,6 +1,5 @@
set(files
altivec.h
- arm_neon.h
emmintrin.h
float.h
iso646.h
@@ -22,6 +21,15 @@ else ()
set(output_dir ${LLVM_BINARY_DIR}/lib/clang/${CLANG_VERSION}/include)
endif ()
+# Generate arm_neon.h
+set(LLVM_TARGET_DEFINITIONS arm_neon.td)
+tablegen(arm_neon.h.inc -gen-arm-neon-header)
+add_custom_target(ClangARMNeon DEPENDS arm_neon.h.inc)
+
+add_custom_command(OUTPUT ${output_dir}/arm_neon.h
+ DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h.inc
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_BINARY_DIR}/arm_neon.h.inc ${output_dir}/arm_neon.h
+ COMMENT "Copying clang's arm_neon.h...")
foreach( f ${files} )
set( src ${CMAKE_CURRENT_SOURCE_DIR}/${f} )
@@ -33,8 +41,8 @@ foreach( f ${files} )
endforeach( f )
add_custom_target(clang-headers ALL
- DEPENDS ${files})
+ DEPENDS ${files} ${output_dir}/arm_neon.h)
-install(FILES ${files}
+install(FILES ${files} ${output_dir}/arm_neon.h
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
DESTINATION lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/include)
OpenPOWER on IntegriCloud