RESOLVED FIXED 139829
copy-webkitlibraries-to-product-directory uses wrong SDK when called from build-webkit
https://bugs.webkit.org/show_bug.cgi?id=139829
Summary copy-webkitlibraries-to-product-directory uses wrong SDK when called from bui...
Daniel Bates
Reported 2014-12-19 12:37:32 PST
The script build-webkit calls copy-webkitlibraries-to-product-directory using --sdk to specify the Xcode SDK to use, but copy-webkitlibraries-to-product-directory only recognizes --sdk-name. The script copy-webkitlibraries-to-product-directory is the only tool that recognizes --sdk-name instead of --sdk. We should make copy-webkitlibraries-to-product-directory consistent with our other tools, remove --sdk-name, and teach it to recognize --sdk.
Attachments
Patch (5.19 KB, patch)
2014-12-19 12:42 PST, Daniel Bates
no flags
Patch (5.86 KB, patch)
2014-12-19 12:48 PST, Daniel Bates
ap: review+
ap: commit-queue-
Daniel Bates
Comment 1 2014-12-19 12:42:10 PST
Daniel Bates
Comment 2 2014-12-19 12:48:48 PST
Alexey Proskuryakov
Comment 3 2014-12-19 15:06:09 PST
Comment on attachment 243567 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=243567&action=review > Tools/Scripts/copy-webkitlibraries-to-product-directory:-76 > - 'sdk-name=s' => \$sdkName, I think that you should also remove this line above: my $sdkName = ""; # Ideally we only use this for build commands, rather than deciding policies about what needs to get copied or built and where it needs to be placed. > Tools/Scripts/copy-webkitlibraries-to-product-directory:103 > +sub ranLib($) This function name lacks a verb. Maybe executeRanlib? Or if there is a more helpful explanation of what this function does, that should be in the name.
Daniel Bates
Comment 4 2014-12-19 16:03:49 PST
(In reply to comment #3) > > Tools/Scripts/copy-webkitlibraries-to-product-directory:-76 > > - 'sdk-name=s' => \$sdkName, > > I think that you should also remove this line above: > > my $sdkName = ""; # Ideally we only use this for build commands, rather than > deciding policies about what needs to get copied or built and where it needs > to be placed. Will remove. > > > Tools/Scripts/copy-webkitlibraries-to-product-directory:103 > > +sub ranLib($) > > This function name lacks a verb. Maybe executeRanlib? Or if there is a more > helpful explanation of what this function does, that should be in the name. Will rename to updateTableOfContentsForLibrary.
Daniel Bates
Comment 5 2014-12-19 16:09:05 PST
(In reply to comment #4) > > > > > Tools/Scripts/copy-webkitlibraries-to-product-directory:103 > > > +sub ranLib($) > > > > This function name lacks a verb. Maybe executeRanlib? Or if there is a more > > helpful explanation of what this function does, that should be in the name. > > Will rename to updateTableOfContentsForLibrary. Actually, there are many references through out this script to ranlib. For now, I'm going to go with your suggestion and rename the function to executeRanlib() for consistency. I suggest we look to update the terminology used in this script in another patch.
Daniel Bates
Comment 6 2014-12-19 16:15:21 PST
Note You need to log in before you can comment on or make changes to this bug.