aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-09-16 21:38:01 +0000
committerJordan Rose <jordan_rose@apple.com>2013-09-16 21:38:01 +0000
commit26a6348612e825a3ab636dee2f6e79212b2bda44 (patch)
tree5a811e88ab6edd254e31fdf32b7798163c438089 /cmake
parent892a5fdf497c16d69bc2ac185819cf384121b7e1 (diff)
downloadexternal_llvm-26a6348612e825a3ab636dee2f6e79212b2bda44.zip
external_llvm-26a6348612e825a3ab636dee2f6e79212b2bda44.tar.gz
external_llvm-26a6348612e825a3ab636dee2f6e79212b2bda44.tar.bz2
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@190808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/GetSVN.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/GetSVN.cmake b/cmake/modules/GetSVN.cmake
index 3ddc3ad..4e32c09 100644
--- a/cmake/modules/GetSVN.cmake
+++ b/cmake/modules/GetSVN.cmake
@@ -16,6 +16,9 @@ get_filename_component(LLVM_DIR "${CMAKE_SCRIPT_MODE_FILE}" PATH)
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)