Changeset 268475 in webkit
- Timestamp:
- Oct 14, 2020 11:03:36 AM (4 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r268474 r268475 1 2020-10-14 Keith Rollin <krollin@apple.com> 2 3 'make debug' fails on the repository root if ccache is installed on mac after r262147 4 https://bugs.webkit.org/show_bug.cgi?id=212469 5 <rdar://problem/70278783> 6 7 Reviewed by David Kilzer. 8 9 ccache is frequently installed in /usr/local/bin. However, when 10 running under XCBuild, $PATH does not include /usr/local/bin. This 11 leaves in a situation where the check for the existence of ccache in 12 Makefile.shared succeeds, but the use of ccache in ccache-wrapper 13 fails. To address this, look for ccache in a few well-known places 14 rather than just relying on $PATH. If it still can't be found, fall 15 back to compiling normally without ccache. 16 17 * ccache/ccache-wrapper: 18 1 19 2020-10-14 Sam Weinig <weinig@apple.com> 2 20 -
trunk/Tools/ccache/ccache-wrapper
r226395 r268475 24 24 # THE POSSIBILITY OF SUCH DAMAGE. 25 25 26 CCACHE_SLOPPINESS="pch_defines,time_macros" ccache "$@" 26 try_one() 27 { 28 [[ -x "$1" && ! -d "$1" ]] && { CCACHE="$1"; return 0; } 29 return 1 30 } 31 32 try() 33 { 34 [[ -n "${CCACHE}" ]] && return 0 35 try_one "$1" || \ 36 try_one "$1/ccache" || \ 37 try_one "$1/bin/ccache" 38 } 39 40 try $(which ccache &> /dev/null) 41 try /usr/local 42 try /opt/brew 43 try "${HOMEBREW_TEMP}/../brew" 44 try "${HOMEBREW_TEMP}/../../brew" 45 46 if [[ -n "${CCACHE}" ]]; then 47 CCACHE_SLOPPINESS="pch_defines,time_macros" "${CCACHE}" "$@" 48 else 49 "$@" 50 fi
Note: See TracChangeset
for help on using the changeset viewer.