WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
82466
Use xcrun to find nm and ranlib on OS X builds
https://bugs.webkit.org/show_bug.cgi?id=82466
Summary
Use xcrun to find nm and ranlib on OS X builds
David Kilzer (:ddkilzer)
Reported
2012-03-28 07:19:10 PDT
When running build-webkit, we should use xcrun to find the nm(1) and ranlib(1) commands on OS X.
Attachments
Patch
(3.05 KB, patch)
2012-03-28 07:40 PDT
,
David Kilzer (:ddkilzer)
no flags
Details
Formatted Diff
Diff
Patch
(4.35 KB, patch)
2012-03-28 10:37 PDT
,
David Kilzer (:ddkilzer)
mitz: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
David Kilzer (:ddkilzer)
Comment 1
2012-03-28 07:40:36 PDT
Created
attachment 134292
[details]
Patch
mitz
Comment 2
2012-03-28 10:14:32 PDT
Comment on
attachment 134292
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=134292&action=review
> Tools/Scripts/webkitperl/features.pm:57 > +sub nmPath() > +{ > + if (isAppleMacWebKit()) { > + my $nm = `xcrun -find nm`; > + chomp $nm; > + return $nm if $nm; > + } > + return "nm"; > +}
Should this function cache the result? Probably doesn’t matter if we run nm only on libraries, but could matter if we run it on every new .o file.
David Kilzer (:ddkilzer)
Comment 3
2012-03-28 10:37:58 PDT
Created
attachment 134330
[details]
Patch
David Kilzer (:ddkilzer)
Comment 4
2012-03-28 10:39:22 PDT
(In reply to
comment #3
)
> Created an attachment (id=134330) [details] > Patch
ChangeLog: - Moved nmPath() to webkitdirs.pm so check-for-global-initializers could use it later. - Cache result of nmPath(). - Moved $ranlib out of the foreach loop in build-webkit.
mitz
Comment 5
2012-03-28 10:51:31 PDT
Comment on
attachment 134330
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=134330&action=review
> Tools/Scripts/webkitdirs.pm:1312 > +sub determineNMPath()
I don’t know why the M is uppercase :-)
David Kilzer (:ddkilzer)
Comment 6
2012-03-28 13:03:34 PDT
(In reply to
comment #5
)
> (From update of
attachment 134330
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=134330&action=review
> > > Tools/Scripts/webkitdirs.pm:1312 > > +sub determineNMPath() > > I don’t know why the M is uppercase :-)
My Shift key was stuck?! :) Fixed.
David Kilzer (:ddkilzer)
Comment 7
2012-03-28 13:14:25 PDT
Committed
r112431
: <
http://trac.webkit.org/changeset/112431
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug