Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions presto-native-execution/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,9 @@ else()
endif()
set(CMAKE_JOB_POOL_LINK presto_link_job_pool)

if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm64" AND ${CMAKE_SYSTEM_NAME} MATCHES
"Darwin")
set(ON_APPLE_SILICON True)
endif()

add_subdirectory(presto_cpp)
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,8 @@ target_link_libraries(

set_property(TARGET presto_operators_test PROPERTY JOB_POOL_LINK
presto_link_job_pool)
if(ON_APPLE_SILICON)
set_tests_properties(
presto_operators_test PROPERTIES ENVIRONMENT
"DYLD_LIBRARY_PATH=/usr/local/lib")
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,8 @@ target_link_libraries(

set_property(TARGET presto_query_runner_test PROPERTY JOB_POOL_LINK
presto_link_job_pool)
if(ON_APPLE_SILICON)
set_tests_properties(
presto_server_test presto_query_runner_test
PROPERTIES ENVIRONMENT "DYLD_LIBRARY_PATH=/usr/local/lib")
endif()
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@ target_link_libraries(

set_property(TARGET presto_expressions_test PROPERTY JOB_POOL_LINK
presto_link_job_pool)
if(ON_APPLE_SILICON)
set_tests_properties(
presto_expressions_test PROPERTIES ENVIRONMENT
"DYLD_LIBRARY_PATH=/usr/local/lib")
endif()