diff --git a/src/main.cpp b/src/main.cpp index caad1c901..46364d8d6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,6 +10,10 @@ gb_global Timings global_timings = {0}; +#if defined(LLVM_BACKEND_SUPPORT) +#include "llvm-c/Types.h" +#endif + #include "parser.hpp" #include "checker.hpp" diff --git a/src/types.cpp b/src/types.cpp index 6d880cdec..4c7f07cc7 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -1,5 +1,3 @@ -#include "llvm-c/Types.h" - struct Scope; struct Ast;