From 57c4b3db55dacbdc83fcfc5c3965d3f612ab96e3 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 6 Aug 2013 17:47:40 -0700 Subject: gras: missing ifdef for jit factory w/o llvm --- lib/jit_factory.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/jit_factory.cpp b/lib/jit_factory.cpp index 596fae8..8d7ef89 100644 --- a/lib/jit_factory.cpp +++ b/lib/jit_factory.cpp @@ -85,6 +85,7 @@ static ExecutionEngineMonitor &get_eemon(void) /*********************************************************************** * Helper function to call a clang compliation -- execs clang **********************************************************************/ +#ifdef HAVE_LLVM static llvm::Module *call_clang_exe(const std::string &source_file, const std::vector &flags) { std::cout << "GRAS compiler: compile source into bitcode..." << std::endl; @@ -141,6 +142,7 @@ static llvm::Module *call_clang_exe(const std::string &source_file, const std::v if (not error.empty()) throw std::runtime_error("GRAS compiler: ParseBitcodeFile " + error); return module; } +#endif //HAVE_LLVM /*********************************************************************** * Helper function to call a clang compliation -- uses clang API -- cgit