[llvm] r190808 - [CMake] Hack GetSVN.cmake to handle unusual terminals.

Jordan Rose jordan_rose at apple.com
Mon Sep 16 14:38:01 PDT 2013

Author: jrose
Date: Mon Sep 16 16:38:01 2013
New Revision: 190808

URL: http://llvm.org/viewvc/llvm-project?rev=190808&view=rev
[CMake] Hack GetSVN.cmake to handle unusual terminals.

I got a report of a hang in git's helper functions trying to figure out
how to display results of "git svn info" when run inside ninja, even though
the result is immediately piped to grep. This seems to avoid that.


Modified: llvm/trunk/cmake/modules/GetSVN.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/GetSVN.cmake?rev=190808&r1=190807&r2=190808&view=diff
--- llvm/trunk/cmake/modules/GetSVN.cmake (original)
+++ llvm/trunk/cmake/modules/GetSVN.cmake Mon Sep 16 16:38:01 2013
@@ -16,6 +16,9 @@ get_filename_component(LLVM_DIR "${CMAKE
 get_filename_component(LLVM_DIR "${LLVM_DIR}" PATH)
 get_filename_component(LLVM_DIR "${LLVM_DIR}" PATH)
+# Handle strange terminals
+set(ENV{TERM} "dumb")
 function(append_info name path)
   execute_process(COMMAND "${LLVM_DIR}/utils/GetSourceVersion" "${path}"
     OUTPUT_VARIABLE revision)

More information about the llvm-commits mailing list