Skip to content
This repository was archived by the owner on Apr 23, 2020. It is now read-only.

Commit 52aed8f

Browse files
committed
Don't dump llvm-config --cmakedir output if command fails.
This patch adjusts the out-of-tree CMake configuration so that the stderr output is ignored when an old llvm-config is found that doesn't support --cmakedir. git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@291992 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent ecdac18 commit 52aed8f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
4949
execute_process(
5050
COMMAND ${LLVM_CONFIG_PATH} --cmakedir
5151
RESULT_VARIABLE HAD_ERROR
52-
OUTPUT_VARIABLE CONFIG_OUTPUT)
52+
OUTPUT_VARIABLE CONFIG_OUTPUT
53+
ERROR_QUIET)
5354
if(NOT HAD_ERROR)
5455
string(STRIP "${CONFIG_OUTPUT}" LLVM_CMAKE_PATH)
5556
else()

0 commit comments

Comments
 (0)