diff options
| author | Jordan Rose <jordan_rose@apple.com> | 2013-09-16 21:38:01 +0000 |
|---|---|---|
| committer | Jordan Rose <jordan_rose@apple.com> | 2013-09-16 21:38:01 +0000 |
| commit | 66ea0363e4c41fcf82db5bee521b9fa077a66a8c (patch) | |
| tree | 72263958478ec99da9b26bc8a9cea70f92a52d8b /llvm/cmake | |
| parent | 3c463aa5e745ee8e79dc2973662282b75176c658 (diff) | |
| download | bcm5719-llvm-66ea0363e4c41fcf82db5bee521b9fa077a66a8c.tar.gz bcm5719-llvm-66ea0363e4c41fcf82db5bee521b9fa077a66a8c.zip | |
[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.
llvm-svn: 190808
Diffstat (limited to 'llvm/cmake')
| -rw-r--r-- | llvm/cmake/modules/GetSVN.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/cmake/modules/GetSVN.cmake b/llvm/cmake/modules/GetSVN.cmake index 3ddc3ad5c99..4e32c09061e 100644 --- a/llvm/cmake/modules/GetSVN.cmake +++ b/llvm/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) |

