/Users/fujiik/rpm/BUILD/tmp diff -uNr root-6.24.06.ORIG/interpreter/cling/lib/Interpreter/CMakeLists.txt root-6.24.06/interpreter/cling/lib/Interpreter/CMakeLists.txt --- root-6.24.06.ORIG/interpreter/cling/lib/Interpreter/CMakeLists.txt 2021-09-01 17:08:19.000000000 +0900 +++ root-6.24.06/interpreter/cling/lib/Interpreter/CMakeLists.txt 2022-02-20 01:06:19.000000000 +0900 @@ -195,7 +195,12 @@ # binary. Eg. /usr/local/gcc -> /usr/bin/ccache. Resolving the realpath # we will get to the ccache and not the intended compiler binary. This # could be fixed if we run 'gcc -###' which will give us the correct info. - get_filename_component(_realpath ${CMAKE_CXX_COMPILER} REALPATH) + if(APPLE) + get_filename_component(_realpath "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++" REALPATH) + set(CLING_CXX_PATH ${_realpath}) + else() + get_filename_component(_realpath ${CMAKE_CXX_COMPILER} REALPATH) + endif() get_filename_component(_name ${_realpath} NAME) get_filename_component(_path ${_realpath} PATH) endif()