[libunwind] r291992 - Don't dump llvm-config --cmakedir output if command fails.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 13 19:46:05 PST 2017
Author: ericwf
Date: Fri Jan 13 21:46:05 2017
New Revision: 291992
URL: http://llvm.org/viewvc/llvm-project?rev=291992&view=rev
Log:
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.
Modified:
libunwind/trunk/CMakeLists.txt
Modified: libunwind/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libunwind/trunk/CMakeLists.txt?rev=291992&r1=291991&r2=291992&view=diff
==============================================================================
--- libunwind/trunk/CMakeLists.txt (original)
+++ libunwind/trunk/CMakeLists.txt Fri Jan 13 21:46:05 2017
@@ -49,7 +49,8 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURR
execute_process(
COMMAND ${LLVM_CONFIG_PATH} --cmakedir
RESULT_VARIABLE HAD_ERROR
- OUTPUT_VARIABLE CONFIG_OUTPUT)
+ OUTPUT_VARIABLE CONFIG_OUTPUT
+ ERROR_QUIET)
if(NOT HAD_ERROR)
string(STRIP "${CONFIG_OUTPUT}" LLVM_CMAKE_PATH)
else()
More information about the cfe-commits
mailing list