Skip to content

Commit 00dd4cc

Browse files
authored
Merge pull request #14 from aalkin/alice/apache-arrow-17.0.0
Use GCC_TOOLCHAIN_ROOT with clang precompile command
2 parents cd60bb6 + 3c73004 commit 00dd4cc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

cpp/cmake_modules/GandivaAddBitcode.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ function(gandiva_add_bitcode SOURCE)
4242
env
4343
SDKROOT=${CMAKE_OSX_SYSROOT})
4444
endif()
45+
4546
list(APPEND
4647
PRECOMPILE_COMMAND
4748
${CLANG_EXECUTABLE}
@@ -58,6 +59,11 @@ function(gandiva_add_bitcode SOURCE)
5859
-o
5960
${BC_FILE}
6061
${ARROW_GANDIVA_PC_CXX_FLAGS})
62+
if(GCC_TOOLCHAIN_ROOT)
63+
list(APPEND
64+
PRECOMPILE_COMMAND
65+
--gcc-install-dir="$GCC_TOOLCHAIN_ROOT")
66+
endif()
6167
if(ARROW_BINARY_DIR)
6268
list(APPEND PRECOMPILE_COMMAND -I${ARROW_BINARY_DIR}/src)
6369
endif()

0 commit comments

Comments
 (0)