summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJosh Blum2013-09-12 23:20:58 -0700
committerJosh Blum2013-09-12 23:20:58 -0700
commitf63d4a613b5061f7754afa015148a726e252323c (patch)
tree2a6bd975d467d36a327232f64c9ebf2f4e933a44 /lib
parent7c4911c28c28305ed4d1aab9b5ea82f96b49f404 (diff)
downloadsandhi-f63d4a613b5061f7754afa015148a726e252323c.tar.gz
sandhi-f63d4a613b5061f7754afa015148a726e252323c.tar.bz2
sandhi-f63d4a613b5061f7754afa015148a726e252323c.zip
gras: jit factory unit test is conditional
Diffstat (limited to 'lib')
-rw-r--r--lib/CMakeLists.txt1
-rw-r--r--lib/jit_factory.cpp2
2 files changed, 1 insertions, 2 deletions
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<std::string> &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");