Move IR cross compile output to a better folder for packaging.

This commit is contained in:
Nong Li
2012-05-31 14:00:21 -07:00
parent 406b2c6b1f
commit f9efe06649
5 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@@ -20,3 +20,4 @@ cmake_install.cmake
CTestTestfile.cmake
!CMakeLists.txt
Testing/
llvm-ir/

View File

@@ -172,7 +172,7 @@ set (IMPALA_LINK_LIBS
# the build time for the tests is rather small and not worth the trouble.
set (IMPALA_TEST_LINK_LIBS ${IMPALA_LINK_LIBS} gtest)
set(LLVM_IR_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/build/llvm-ir")
set(LLVM_IR_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/llvm-ir")
file(MAKE_DIRECTORY ${LLVM_IR_OUTPUT_DIRECTORY})
# compile these subdirs using their own CMakeLists.txt

View File

@@ -118,7 +118,7 @@ TEST_F(LlvmCodeGenTest, ReplaceFnCall) {
typedef void (*TestLoopFn)(int);
string module_file;
PathBuilder::GetFullPath("testdata/llvm/test-loop.ir", &module_file);
PathBuilder::GetFullPath("llvm-ir/test-loop.ir", &module_file);
// Part 1: Load the module and make sure everything is loaded correctly.
scoped_ptr<LlvmCodeGen> codegen;

View File

@@ -113,7 +113,7 @@ Status LlvmCodeGen::LoadImpalaIR(ObjectPool* pool, scoped_ptr<LlvmCodeGen>* code
// TODO: is this how we want to pick up external files? Do we need better configuration
// support?
string module_file;
PathBuilder::GetFullPath("be/build/llvm-ir/impala.ll", &module_file);
PathBuilder::GetFullPath("llvm-ir/impala.ll", &module_file);
RETURN_IF_ERROR(LoadFromFile(pool, module_file, codegen_ret));
LlvmCodeGen* codegen = codegen_ret->get();