aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 346488ca8..a40a96ea9 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -28,6 +28,14 @@ gb_global Timings global_timings = {0};
#if defined(LLVM_BACKEND_SUPPORT)
#include "llvm_backend.cpp"
+
+#if defined(GB_SYSTEM_OSX)
+ #include <llvm/Config/llvm-config.h>
+ #if LLVM_VERSION_MAJOR < 11
+ #error LLVM Version 11+ is required => "brew install llvm@11"
+ #endif
+#endif
+
#endif
#include "ir.cpp"