Skip to content
/ arrow Public
forked from apache/arrow

Commit

Permalink
Use GCC_TOOLCHAIN_ROOT with clang precompile command
Browse files Browse the repository at this point in the history
  • Loading branch information
aalkin committed Aug 15, 2024
1 parent ef5368c commit 3c73004
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cpp/cmake_modules/GandivaAddBitcode.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ function(gandiva_add_bitcode SOURCE)
env
SDKROOT=${CMAKE_OSX_SYSROOT})
endif()

list(APPEND
PRECOMPILE_COMMAND
${CLANG_EXECUTABLE}
Expand All @@ -58,6 +59,11 @@ function(gandiva_add_bitcode SOURCE)
-o
${BC_FILE}
${ARROW_GANDIVA_PC_CXX_FLAGS})
if(GCC_TOOLCHAIN_ROOT)
list(APPEND
PRECOMPILE_COMMAND
--gcc-install-dir="$GCC_TOOLCHAIN_ROOT")
endif()
if(ARROW_BINARY_DIR)
list(APPEND PRECOMPILE_COMMAND -I${ARROW_BINARY_DIR}/src)
endif()
Expand Down

0 comments on commit 3c73004

Please sign in to comment.