[libcxxabi] r291993 - 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:47:49 PST 2017


Author: ericwf
Date: Fri Jan 13 21:47:49 2017
New Revision: 291993

URL: http://llvm.org/viewvc/llvm-project?rev=291993&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:
    libcxxabi/trunk/CMakeLists.txt

Modified: libcxxabi/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/CMakeLists.txt?rev=291993&r1=291992&r2=291993&view=diff
==============================================================================
--- libcxxabi/trunk/CMakeLists.txt (original)
+++ libcxxabi/trunk/CMakeLists.txt Fri Jan 13 21:47:49 2017
@@ -55,7 +55,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