[compiler-rt] r369891 - [GWP_ASAN] Avoid using VERSION_GREATER_EQUAL in cmake files

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 26 04:02:36 PDT 2019


Author: bjope
Date: Mon Aug 26 04:02:36 2019
New Revision: 369891

URL: http://llvm.org/viewvc/llvm-project?rev=369891&view=rev
Log:
[GWP_ASAN] Avoid using VERSION_GREATER_EQUAL in cmake files

This is a fixup for r369823 which introduced the use of
VERSION_GREATER_EQUAL in the cmake config for gwp_asan.

Minimum supported version of cmake in LLVM is 3.4.3 and
VERSION_GREATER_EQUAL was not introduced until later
versions of cmake.

Modified:
    compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt

Modified: compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt?rev=369891&r1=369890&r2=369891&view=diff
==============================================================================
--- compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/gwp_asan/CMakeLists.txt Mon Aug 26 04:02:36 2019
@@ -107,7 +107,7 @@ if (COMPILER_RT_HAS_GWP_ASAN)
   # is >= 6.0.
   if (COMPILER_RT_BUILD_LIBFUZZER AND
       "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND
-      CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 6.0)
+      NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
     add_executable(stack_trace_compressor_fuzzer
         stack_trace_compressor_fuzzer.cpp
         ${GWP_ASAN_SOURCES}




More information about the llvm-commits mailing list