diff options
| author | gingerBill <bill@gingerbill.org> | 2021-02-24 23:21:34 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-02-24 23:21:34 +0000 |
| commit | ba817d153ce1cd48dd37e47d2e4243270f78e9f0 (patch) | |
| tree | e5628e0c1a375ada4c45c3e73846006a2b6ac4f2 /src/main.cpp | |
| parent | 2d88c6c6a552563634aba23e35b6578f6230ad87 (diff) | |
Get compiling on Mac Mini M1
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 8 |
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" |