From a5b4b735449413ae58e2213a75dd4356afb0e33d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 11 Sep 2021 16:53:39 +0100 Subject: [PATCH] Add error message for minimum required LLVM --- src/llvm_backend.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/llvm_backend.cpp b/src/llvm_backend.cpp index 034814bf1..5fff3c486 100644 --- a/src/llvm_backend.cpp +++ b/src/llvm_backend.cpp @@ -21,6 +21,10 @@ #include "llvm_backend_stmt.cpp" #include "llvm_backend_proc.cpp" +#if LLVM_VERSION_MAJOR < 11 +#error "LLVM Version 11 is the minimum required" +#endif + void lb_add_foreign_library_path(lbModule *m, Entity *e) { if (e == nullptr) {