Changeset 169088 in webkit


Ignore:
Timestamp:
May 19, 2014 5:43:59 PM (10 years ago)
Author:
ddkilzer@apple.com
Message:

[iOS] REGRESSION (r168910): webkitdirs.pm: Be more forgiving when parsing --sdk, --device and --sim
<http://webkit.org/b/133089>

Reviewed by Darin Adler.

  • Scripts/webkitdirs.pm:

(determineXcodeSDK): If both '--sdk SDKROOT' and '--sim' are
specified on the command line, we would remove the '--sdk'
arguments, but leave '--sim', potentially passing it along to
xcodebuild causing a build failure. This happens when
'old-run-webkit-tests --release --sim' invokes
build-dumprendertree when DumpRenderTree hasn't been built yet.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r169080 r169088  
     12014-05-19  David Kilzer  <ddkilzer@apple.com>
     2
     3        [iOS] REGRESSION (r168910): webkitdirs.pm: Be more forgiving when parsing --sdk, --device and --sim
     4        <http://webkit.org/b/133089>
     5
     6        Reviewed by Darin Adler.
     7
     8        * Scripts/webkitdirs.pm:
     9        (determineXcodeSDK): If both '--sdk SDKROOT' and '--sim' are
     10        specified on the command line, we would remove the '--sdk'
     11        arguments, but leave '--sim', potentially passing it along to
     12        xcodebuild causing a build failure.  This happens when
     13        'old-run-webkit-tests --release --sim' invokes
     14        build-dumprendertree when DumpRenderTree hasn't been built yet.
     15
    1162014-05-19  David Farler  <dfarler@apple.com>
    217
  • trunk/Tools/Scripts/webkitdirs.pm

    r169078 r169088  
    399399    if (checkForArgumentAndRemoveFromARGVGettingValue("--sdk", \$sdk)) {
    400400        $xcodeSDK = $sdk;
    401     } elsif (checkForArgumentAndRemoveFromARGV("--device")) {
    402         $xcodeSDK = 'iphoneos.internal';
    403     } elsif (checkForArgumentAndRemoveFromARGV("--sim") ||
     401    }
     402    if (checkForArgumentAndRemoveFromARGV("--device")) {
     403        $xcodeSDK ||= 'iphoneos.internal';
     404    }
     405    if (checkForArgumentAndRemoveFromARGV("--sim") ||
    404406        checkForArgumentAndRemoveFromARGV("--simulator")) {
    405         $xcodeSDK = 'iphonesimulator';
     407        $xcodeSDK ||= 'iphonesimulator';
    406408    }
    407409}
Note: See TracChangeset for help on using the changeset viewer.