[PATCH] Add update target to ninja
Gautier DI FOLCO
gautier.difolco at gmail.com
Sat Mar 1 07:46:51 PST 2014
Hi chandlerc, hansw, chapuni,
I just added an update command to ninja, now we can do $ ninja update, as we can do $ make update.
http://llvm-reviews.chandlerc.com/D2908
Files:
CMakeLists.txt
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt
+++ CMakeLists.txt
@@ -569,3 +569,8 @@
endif()
endif()
+if(CMAKE_GENERATOR MATCHES "Ninja")
+ add_custom_target(update
+ COMMAND find "${CMAKE_CURRENT_SOURCE_DIR}" -name .svn -type d | sed -e 's/\\.svn//' | xargs svn update
+ )
+endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2908.1.patch
Type: text/x-patch
Size: 359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140301/477507fe/attachment.bin>
More information about the llvm-commits
mailing list