Changeset 220563 in webkit


Ignore:
Timestamp:
Aug 10, 2017 4:57:47 PM (7 years ago)
Author:
mitz@apple.com
Message:

[Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
https://bugs.webkit.org/show_bug.cgi?id=173223

Reviewed by Tim Horton.

The rebuilds were happening due to a difference in the compiler options that the IDE and
xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
xcodebuild pass that option, too, set INDEX_ENABLE_DATA_STORE to YES and
INDEX_DATA_STORE_DIR to the Index Datastore path specified in Xcode Locations preferences >
Advanced when a Custom Absolute path is selected.

  • Scripts/webkitdirs.pm:

(determineBaseProductDir):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r220562 r220563  
     12017-08-10  Dan Bernstein  <mitz@apple.com>
     2
     3        [Xcode] With Xcode 9 developer beta, everything rebuilds when switching between command-line and IDE
     4        https://bugs.webkit.org/show_bug.cgi?id=173223
     5
     6        Reviewed by Tim Horton.
     7
     8        The rebuilds were happening due to a difference in the compiler options that the IDE and
     9        xcodebuild were specifying. Only the IDE was passing the -index-store-path option. To make
     10        xcodebuild pass that option, too, set INDEX_ENABLE_DATA_STORE to YES and
     11        INDEX_DATA_STORE_DIR to the Index Datastore path specified in Xcode Locations preferences >
     12        Advanced when a Custom Absolute path is selected.
     13
     14        * Scripts/webkitdirs.pm:
     15        (determineBaseProductDir):
     16
    1172017-08-10  Yusuke Suzuki  <utatane.tea@gmail.com>
    218
  • trunk/Tools/Scripts/webkitdirs.pm

    r220335 r220563  
    231231
    232232    my $setSharedPrecompsDir;
     233    my $indexDataStoreDir;
    233234    $baseProductDir = $ENV{"WEBKIT_OUTPUTDIR"};
    234235
     
    248249            my $buildLocationType = join '', readXcodeUserDefault("IDECustomBuildLocationType");
    249250            # FIXME: Read CustomBuildIntermediatesPath and set OBJROOT accordingly.
    250             $baseProductDir = readXcodeUserDefault("IDECustomBuildProductsPath") if $buildLocationType eq "Absolute";
     251            if ($buildLocationType eq "Absolute") {
     252                $baseProductDir = readXcodeUserDefault("IDECustomBuildProductsPath");
     253                $indexDataStoreDir = readXcodeUserDefault("IDECustomIndexStorePath");
     254            }
    251255        }
    252256
     
    281285        @baseProductDirOption = ("SYMROOT=$baseProductDir", "OBJROOT=$baseProductDir");
    282286        push(@baseProductDirOption, "SHARED_PRECOMPS_DIR=${baseProductDir}/PrecompiledHeaders") if $setSharedPrecompsDir;
     287        push(@baseProductDirOption, "INDEX_ENABLE_DATA_STORE=YES", "INDEX_DATA_STORE_DIR=${indexDataStoreDir}") if $indexDataStoreDir;
    283288    }
    284289
Note: See TracChangeset for help on using the changeset viewer.