[compiler-rt] r255183 - [CMake] [Darwin] Log architecture test failures to CMakeError.log
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 9 16:39:57 PST 2015
Author: cbieneman
Date: Wed Dec 9 18:39:57 2015
New Revision: 255183
URL: http://llvm.org/viewvc/llvm-project?rev=255183&view=rev
Log:
[CMake] [Darwin] Log architecture test failures to CMakeError.log
This makes debugging configuration issues way easier.
Modified:
compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
Modified: compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake?rev=255183&r1=255182&r2=255183&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/CompilerRTDarwinUtils.cmake Wed Dec 9 18:39:57 2015
@@ -78,6 +78,10 @@ function(darwin_test_archs os valid_arch
OUTPUT_VARIABLE TEST_OUTPUT)
if(${CAN_TARGET_${os}_${arch}})
list(APPEND working_archs ${arch})
+ else()
+ file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
+ "Testing compiler for supporting ${os}-${arch}:\n"
+ "${TEST_OUTPUT}\n")
endif()
endforeach()
set(${valid_archs} ${working_archs}
More information about the llvm-commits
mailing list