assignUser commented on code in PR #13556: URL: https://github.com/apache/arrow/pull/13556#discussion_r923276083
########## cpp/CMakeLists.txt: ########## @@ -215,18 +215,39 @@ else() set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE}) endif() -if(ARROW_USE_CCACHE - AND NOT CMAKE_C_COMPILER_LAUNCHER - AND NOT CMAKE_CXX_COMPILER_LAUNCHER) +if((ARROW_USE_SCCACHE) + AND NOT CMAKE_C_COMPILER_LAUNCHER + AND NOT CMAKE_CXX_COMPILER_LAUNCHER) + + find_program(SCCACHE_FOUND sccache) + + if(NOT SCCACHE_FOUND AND DEFINED ENV{SCCACHE_PATH}) + # cmake has problems finding sccache from within mingw Review Comment: No it falls back to [ccache](https://github.com/ursacomputing/crossbow/runs/7388502838?check_suite_focus=true#step:7:5555) if we don't use the envvar hack. I would prefer to not need it too... -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org