Changeset 223818 in webkit
- Timestamp:
- Oct 21, 2017 2:42:51 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 5 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r223779 r223818 1 2017-10-21 Tim Horton <timothy_horton@apple.com> 2 3 Turn on ccache for Mac cmake builds by default 4 https://bugs.webkit.org/show_bug.cgi?id=177059 5 6 Reviewed by Sam Weinig. 7 8 * Source/cmake/WebKitCCache.cmake: Added. 9 * Source/cmake/WebKitCommon.cmake: 10 Turn on ccache for Mac CMake builds (Makefile and Ninja generators only) 11 if it's installed, making use of CMake's ability to wrap the compiler invocation. 12 1 13 2017-10-20 Antoine Quint <graouts@apple.com> 2 14 -
trunk/Source/cmake/WebKitCommon.cmake
r223621 r223818 53 53 include(WebKitMacros) 54 54 include(WebKitFS) 55 include(WebKitCCache) 55 56 include(WebKitCompilerFlags) 56 57 include(WebKitFeatures) -
trunk/Tools/ChangeLog
r223796 r223818 1 2017-10-21 Tim Horton <timothy_horton@apple.com> 2 3 Turn on ccache for Mac cmake builds by default 4 https://bugs.webkit.org/show_bug.cgi?id=177059 5 6 Reviewed by Sam Weinig. 7 8 * ccache/ccache-clang: 9 * ccache/ccache-wrapper: Added. 10 Add a pass-through ccache wrapper to be used with CMake, in addition 11 to the existing faux-clang wrappers. 12 13 * Scripts/build-webkit: 14 Add --use-ccache and --no-use-ccache option, which will define 15 WK_USE_CCACHE to YES or NO, respectively, which the underlying 16 build systems respect. We do not define WK_USE_CCACHE if the option 17 is not specified, because the underlying build systems have different 18 default values. 19 1 20 2017-10-20 Aakash Jain <aakash_jain@apple.com> 2 21 -
trunk/Tools/Scripts/build-webkit
r223454 r223818 67 67 my $archs32bit = 0; 68 68 my $skipLibraryUpdate = 0; 69 my $useCCache = -1; 69 70 70 71 my @features = getFeatureOptionList(); … … 121 122 --skip-library-update Skip the check to see if windows libraries are up to date 122 123 124 --[no-]use-ccache Enable (or disable) CCache, if available 125 123 126 EOF 124 127 … … 137 140 'analyze' => \$shouldRunStaticAnalyzer, 138 141 'default-cmake-features' => \$defaultCMakeFeatures, 139 'skip-library-update' => \$skipLibraryUpdate 142 'skip-library-update' => \$skipLibraryUpdate, 143 'use-ccache!' => \$useCCache, 140 144 ); 141 145 … … 155 159 156 160 $ENV{'VERBOSE'} = 1 if $verbose; 161 162 if ($useCCache == 1) { 163 $ENV{'WK_USE_CCACHE'} = "YES"; 164 } elsif ($useCCache == 0) { 165 $ENV{'WK_USE_CCACHE'} = "NO"; 166 } 157 167 158 168 checkRequiredSystemConfig(); -
trunk/Tools/ccache/ccache-clang
r219082 r223818 35 35 position=$(($position + 1)) 36 36 done 37 CCACHE_SLOPPINESS="pch_defines,time_macros" ccache$(xcrun -f -sdk "$sdk" "${_XCRUN_TOOL:-clang}") "$@"37 $(dirname "$0")/ccache-wrapper $(xcrun -f -sdk "$sdk" "${_XCRUN_TOOL:-clang}") "$@" -
trunk/Tools/ccache/ccache-wrapper
r223813 r223818 24 24 # THE POSSIBILITY OF SUCH DAMAGE. 25 25 26 position=1 27 while [[ $position -le $# ]]; do 28 case "${!position}" in 29 -isysroot) 30 position=$(($position + 1)) 31 sdk="${!position}" 32 break 33 ;; 34 esac 35 position=$(($position + 1)) 36 done 37 CCACHE_SLOPPINESS="pch_defines,time_macros" ccache $(xcrun -f -sdk "$sdk" "${_XCRUN_TOOL:-clang}") "$@" 26 CCACHE_SLOPPINESS="pch_defines,time_macros" ccache "$@"
Note: See TracChangeset
for help on using the changeset viewer.