mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
Move IR cross compile output to a better folder for packaging.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -20,3 +20,4 @@ cmake_install.cmake
|
||||
CTestTestfile.cmake
|
||||
!CMakeLists.txt
|
||||
Testing/
|
||||
llvm-ir/
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user