Fix issue in cmake build for checking ccache
Created attachment 391987 [details] Patch
Created attachment 391988 [details] Patch
Comment on attachment 391988 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=391988&action=review > Source/cmake/WebKitCCache.cmake:17 > if (NOT DEFINED ENV{CCACHE_SLOPPINESS}) > set(ENV{CCACHE_SLOPPINESS} time_macros) > endif () > + # FIXME: readlink -f isn't supported on macOS. https://bugs.webkit.org/show_bug.cgi?id=208379 > execute_process(COMMAND readlink -f ${CMAKE_CXX_COMPILER} RESULT_VARIABLE READLINK_RETCODE OUTPUT_VARIABLE REAL_CXX_PATH OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET) > execute_process(COMMAND which ${CCACHE_FOUND} RESULT_VARIABLE WHICH_RETCODE OUTPUT_VARIABLE REAL_CCACHE_PATH OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_QUIET) > - if (${WHICH_RETCODE} EQUAL 0 AND ${READLINK_RETCODE} EQUAL 0 AND ${REAL_CXX_PATH} STREQUAL ${REAL_CCACHE_PATH}) > + if (${WHICH_RETCODE} EQUAL 0 AND ${READLINK_RETCODE} EQUAL 0 AND "${REAL_CXX_PATH}" STREQUAL "${REAL_CCACHE_PATH}") This codeblock should not execute on Mac. Its inside a if (!PORT STREQUAL "Mac")
Comment on attachment 391988 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=391988&action=review >> Source/cmake/WebKitCCache.cmake:17 >> + if (${WHICH_RETCODE} EQUAL 0 AND ${READLINK_RETCODE} EQUAL 0 AND "${REAL_CXX_PATH}" STREQUAL "${REAL_CCACHE_PATH}") > > This codeblock should not execute on Mac. > Its inside a if (!PORT STREQUAL "Mac") If you build JSCOnly you'll hit it.
(In reply to Keith Miller from comment #4) > Comment on attachment 391988 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=391988&action=review > > >> Source/cmake/WebKitCCache.cmake:17 > >> + if (${WHICH_RETCODE} EQUAL 0 AND ${READLINK_RETCODE} EQUAL 0 AND "${REAL_CXX_PATH}" STREQUAL "${REAL_CCACHE_PATH}") > > > > This codeblock should not execute on Mac. > > Its inside a if (!PORT STREQUAL "Mac") > > If you build JSCOnly you'll hit it. Regardless, you'll have the same problem if either of the command fails on any other platform for some reason.
Comment on attachment 391988 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=391988&action=review >>>> Source/cmake/WebKitCCache.cmake:17 >>>> + if (${WHICH_RETCODE} EQUAL 0 AND ${READLINK_RETCODE} EQUAL 0 AND "${REAL_CXX_PATH}" STREQUAL "${REAL_CCACHE_PATH}") >>> >>> This codeblock should not execute on Mac. >>> Its inside a if (!PORT STREQUAL "Mac") >> >> If you build JSCOnly you'll hit it. > > Regardless, you'll have the same problem if either of the command fails on any other platform for some reason. I see
Comment on attachment 391988 [details] Patch Clearing flags on attachment: 391988 Committed r257649: <https://trac.webkit.org/changeset/257649>
All reviewed patches have been landed. Closing bug.
<rdar://problem/59897121>