mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-14 07:09:08 +00:00
[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
This commit is contained in:
parent
21dfcf1c7d
commit
6f21cbb1dd
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user