Changeset 262068 in webkit


Ignore:
Timestamp:
May 22, 2020 11:57:37 AM (4 years ago)
Author:
Paulo Matos
Message:

Add support for [no-]use-ccache option in build-jsc
https://bugs.webkit.org/show_bug.cgi?id=212259

Reviewed by Mark Lam.

  • Scripts/build-jsc:
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r262066 r262068  
     12020-05-22  Paulo Matos  <pmatos@igalia.com>
     2
     3        Add support for [no-]use-ccache option in build-jsc
     4        https://bugs.webkit.org/show_bug.cgi?id=212259
     5
     6        Reviewed by Mark Lam.
     7
     8        * Scripts/build-jsc:
     9
    1102020-05-22  Alex Christensen  <achristensen@webkit.org>
    211
  • trunk/Tools/Scripts/build-jsc

    r260917 r262068  
    6262my $copyLibraries = 1;
    6363my $startTime = time();
     64my $useCCache = -1;
    6465
    6566my @features = getFeatureOptionList();
     
    9394  --cmakeargs=<arguments>       One or more optional CMake flags (e.g. --cmakeargs="-DFOO=bar -DCMAKE_PREFIX_PATH=/usr/local")
    9495  --build-dir=<path>            Build out of tree in directory at <path>
     96
     97  --[no-]use-ccache             Enable (or disable) CCache, if available
    9598EOF
    9699
     
    105108    'makeargs=s' => \$makeArgs,
    106109    'cmakeargs=s' => \@cmakeArgs,
    107     'build-dir=s' => \$buildDir
     110    'build-dir=s' => \$buildDir,
     111    'use-ccache!' => \$useCCache
    108112);
    109113
     
    134138if (isWinCairo() || (isJSCOnly() && isWindows())) {
    135139    (system("python Tools/Scripts/update-webkit-wincairo-libs.py") == 0) or die;
     140}
     141
     142if ($useCCache == 1) {
     143    $ENV{'WK_USE_CCACHE'} = "YES";
     144} elsif ($useCCache == 0) {
     145    $ENV{'WK_USE_CCACHE'} = "NO";
    136146}
    137147
Note: See TracChangeset for help on using the changeset viewer.