Bug 87588 - Use xcrun to find path to nm for Mac port
Summary: Use xcrun to find path to nm for Mac port
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac Unspecified
: P2 Normal
Assignee: David Kilzer (:ddkilzer)
URL:
Keywords:
Depends on:
Blocks: 80915
  Show dependency treegraph
 
Reported: 2012-05-26 23:47 PDT by David Kilzer (:ddkilzer)
Modified: 2012-05-27 14:31 PDT (History)
5 users (show)

See Also:


Attachments
Patch v1 (3.48 KB, patch)
2012-05-26 23:49 PDT, David Kilzer (:ddkilzer)
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Kilzer (:ddkilzer) 2012-05-26 23:47:28 PDT
Use xcrun to find path to nm for Mac port
Comment 1 David Kilzer (:ddkilzer) 2012-05-26 23:49:24 PDT
Created attachment 144219 [details]
Patch v1
Comment 2 David Kilzer (:ddkilzer) 2012-05-26 23:52:36 PDT
Committed r118621: <http://trac.webkit.org/changeset/118621>
Comment 3 Dirk Pranke 2012-05-27 12:26:02 PDT
Perhaps a comment somewhere in the code, changelog, or bug about why xcrun is needed / useful?
Comment 4 David Kilzer (:ddkilzer) 2012-05-27 12:52:51 PDT
(In reply to comment #3)
> Perhaps a comment somewhere in the code, changelog, or bug about why xcrun is needed / useful?

Newer versions of Xcode now bundle build tools (like nm, gperf, etc.) inside each SDK (macosx, iphoneos, iphonesimulator) instead of in /usr/bin.  This allows different versions of each tool to be shipped independent of the host (Mac) that's used to build and independent of each SDK.

The xcrun tool is how one finds the path to the correct tool (based on which SDK you're currently building for).  See Bug 80915.
Comment 5 Dirk Pranke 2012-05-27 14:31:38 PDT
thanks!