[compiler-rt] r280958 - Really fix warnings about passing -std=gnu99 to MSVC
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 8 09:25:34 PDT 2016
Author: rnk
Date: Thu Sep 8 11:25:34 2016
New Revision: 280958
URL: http://llvm.org/viewvc/llvm-project?rev=280958&view=rev
Log:
Really fix warnings about passing -std=gnu99 to MSVC
Modified:
compiler-rt/trunk/cmake/Modules/BuiltinTests.cmake
Modified: compiler-rt/trunk/cmake/Modules/BuiltinTests.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/Modules/BuiltinTests.cmake?rev=280958&r1=280957&r2=280958&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/Modules/BuiltinTests.cmake (original)
+++ compiler-rt/trunk/cmake/Modules/BuiltinTests.cmake Thu Sep 8 11:25:34 2016
@@ -50,12 +50,13 @@ function(try_compile_only output)
)
CHECK_COMPILER_FLAG_COMMON_PATTERNS(_CheckCCompilerFlag_COMMON_PATTERNS)
+ set(ERRORS_FOUND OFF)
foreach(var ${_CheckCCompilerFlag_COMMON_PATTERNS})
if("${var}" STREQUAL "FAIL_REGEX")
continue()
endif()
- if("${var}" MATCHES "${_CheckCCompilerFlag_COMMON_PATTERNS}")
- set(ERRORS_FOUND True)
+ if("${TEST_ERROR}" MATCHES "${var}" OR "${TEST_OUTPUT}" MATCHES "${var}")
+ set(ERRORS_FOUND ON)
endif()
endforeach()
More information about the llvm-commits
mailing list