diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/workaround_llvm_pr39177.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cmake/workaround_llvm_pr39177.cmake b/cmake/workaround_llvm_pr39177.cmake index 317cac7e..9e0ac8bd 100644 --- a/cmake/workaround_llvm_pr39177.cmake +++ b/cmake/workaround_llvm_pr39177.cmake @@ -43,8 +43,7 @@ # [MODIFIED] lib/Module/Passes.h # Detect whether LLVM version is affected by PR39177 -if ((${LLVM_VERSION_MAJOR} GREATER 3 OR (${LLVM_VERSION_MAJOR} EQUAL 3 AND ${LLVM_VERSION_MINOR} EQUAL 9)) # LLVM >= 3.9 - AND (${LLVM_VERSION_MAJOR} LESS 7 OR (${LLVM_VERSION_MAJOR} EQUAL 7 AND ${LLVM_VERSION_MINOR} EQUAL 0 AND ${LLVM_VERSION_PATCH} EQUAL 0))) # LLVM <= 7.0.0 +if (${LLVM_VERSION_MAJOR} LESS 7 OR (${LLVM_VERSION_MAJOR} EQUAL 7 AND ${LLVM_VERSION_MINOR} EQUAL 0 AND ${LLVM_VERSION_PATCH} EQUAL 0)) # LLVM <= 7.0.0 set(DISABLE_WORKAROUND_LLVM_PR39177_DEFAULT OFF) else() set(DISABLE_WORKAROUND_LLVM_PR39177_DEFAULT ON) |