From f63d4a613b5061f7754afa015148a726e252323c Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Thu, 12 Sep 2013 23:20:58 -0700 Subject: gras: jit factory unit test is conditional --- lib/CMakeLists.txt | 1 + lib/jit_factory.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index ead097a..64e8570 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -116,6 +116,7 @@ endif() #step 2) setup LLVM if found and find Clang if(LLVM_FOUND) + set(HAVE_JIT_FACTORY TRUE PARENT_SCOPE) add_definitions(-DHAVE_LLVM) add_definitions(${LLVM_CFLAGS}) link_directories(${LLVM_LIBRARY_DIRS}) diff --git a/lib/jit_factory.cpp b/lib/jit_factory.cpp index a437a52..6aaa3a0 100644 --- a/lib/jit_factory.cpp +++ b/lib/jit_factory.cpp @@ -88,8 +88,6 @@ static ExecutionEngineMonitor &get_eemon(void) #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; - //make up bitcode file path char bitcode_file[L_tmpnam]; if (std::tmpnam(bitcode_file) == NULL) throw std::runtime_error("GRAS compiler: tmp bitcode file path failed"); -- cgit