[PATCH] D41806: [cmake] Remove unused NATIVE LLVM_CONFIG_EXE logic.

Don Hinton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 6 18:07:35 PST 2018


hintonda created this revision.
hintonda added a reviewer: beanz.
Herald added a subscriber: mgorny.

Remove unused NATIVE LLVM_CONFIG_EXE logic.  This is enabled
when CMAKE_CROSSCOMPILING is enabled, but never used.


https://reviews.llvm.org/D41806

Files:
  tools/llvm-config/CMakeLists.txt


Index: tools/llvm-config/CMakeLists.txt
===================================================================
--- tools/llvm-config/CMakeLists.txt
+++ tools/llvm-config/CMakeLists.txt
@@ -63,19 +63,3 @@
 
 # Add the dependency on the generation step.
 add_file_dependencies(${CMAKE_CURRENT_SOURCE_DIR}/llvm-config.cpp ${BUILDVARIABLES_OBJPATH})
-
-if(CMAKE_CROSSCOMPILING)
-  set(${project}_LLVM_CONFIG_EXE "${LLVM_NATIVE_BUILD}/bin/llvm-config")
-  set(${project}_LLVM_CONFIG_EXE ${${project}_LLVM_CONFIG_EXE} PARENT_SCOPE)
-
-  add_custom_command(OUTPUT "${${project}_LLVM_CONFIG_EXE}"
-    COMMAND ${CMAKE_COMMAND} --build . --target llvm-config --config $<CONFIGURATION>
-    DEPENDS ${LLVM_NATIVE_BUILD}/CMakeCache.txt
-    WORKING_DIRECTORY ${LLVM_NATIVE_BUILD}
-    COMMENT "Building native llvm-config..."
-    USES_TERMINAL)
-  add_custom_target(${project}NativeLLVMConfig DEPENDS ${${project}_LLVM_CONFIG_EXE})
-  add_dependencies(${project}NativeLLVMConfig CONFIGURE_LLVM_NATIVE)
-
-  add_dependencies(llvm-config ${project}NativeLLVMConfig)
-endif(CMAKE_CROSSCOMPILING)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41806.128863.patch
Type: text/x-patch
Size: 1080 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180107/823e09bf/attachment.bin>


More information about the llvm-commits mailing list