summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CMakeLists.txt1
-rw-r--r--lib/jit_factory.cpp2
-rw-r--r--tests/CMakeLists.txt2
3 files changed, 3 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");
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 63f6826..8371364 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -55,7 +55,9 @@ GR_ADD_TEST(sbuffer_test ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/sbuffe
GR_ADD_TEST(query_test ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/query_test.py)
GR_ADD_TEST(block_calls_test ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/block_calls_test.py)
GR_ADD_TEST(time_tags_test ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/time_tags_test.py)
+if(HAVE_JIT_FACTORY)
GR_ADD_TEST(jit_factory_test ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/jit_factory_test.py)
+endif()
########################################################################
# Build an example loadable module