⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 118621 in webkit


Ignore:
Timestamp:
May 26, 2012, 11:52:07 PM (14 years ago)
Author:
ddkilzer@apple.com
Message:

Use xcrun to find path to nm for Mac port
<http://webkit.org/b/87588>

Reviewed by Dan Bernstein.

  • Scripts/webkitpy/layout_tests/port/mac.py:

(MacPort.nm_command): Add. Tries to find a path for the nm
command using xcrun. Falls back to returning 'nm'.

  • Scripts/webkitpy/layout_tests/port/webkit.py:

(WebKitPort.nm_command): Add. Returns 'nm'.
(WebKitPort._webcore_symbols_string): Call self.nm_command().

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r118594 r118621  
     12012-05-26  David Kilzer  <ddkilzer@apple.com>
     2
     3        Use xcrun to find path to nm for Mac port
     4        <http://webkit.org/b/87588>
     5
     6        Reviewed by Dan Bernstein.
     7
     8        * Scripts/webkitpy/layout_tests/port/mac.py:
     9        (MacPort.nm_command): Add. Tries to find a path for the nm
     10        command using xcrun.  Falls back to returning 'nm'.
     11        * Scripts/webkitpy/layout_tests/port/webkit.py:
     12        (WebKitPort.nm_command): Add. Returns 'nm'.
     13        (WebKitPort._webcore_symbols_string): Call self.nm_command().
     14
    1152012-05-25  Lynn Neir  <lynn.neir@skype.net>
    216
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/mac.py

    r115977 r118621  
    11# Copyright (C) 2011 Google Inc. All rights reserved.
     2# Copyright (C) 2012 Apple Inc. All rights reserved.
    23#
    34# Redistribution and use in source and binary forms, with or without
     
    240241                pass
    241242            self._helper = None
     243
     244    def nm_command(self):
     245        try:
     246            return self._executive.run_command(['xcrun', '-find', 'nm']).rstrip()
     247        except ScriptError, e:
     248            _log.warn("xcrun failed; falling back to 'nm'.")
     249            return 'nm'
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py

    r117028 r118621  
    22# Copyright (C) 2010 Google Inc. All rights reserved.
    33# Copyright (C) 2010 Gabor Rapcsanyi <rgabor@inf.u-szeged.hu>, University of Szeged
    4 # Copyright (C) 2011 Apple Inc. All rights reserved.
     4# Copyright (C) 2011, 2012 Apple Inc. All rights reserved.
    55#
    66# Redistribution and use in source and binary forms, with or without
     
    263263        return None
    264264
     265    def nm_command(self):
     266        return 'nm'
     267
    265268    def _webcore_symbols_string(self):
    266269        webcore_library_path = self._path_to_webcore_library()
     
    268271            return None
    269272        try:
    270             return self._executive.run_command(['nm', webcore_library_path], error_handler=Executive.ignore_error)
     273            return self._executive.run_command([self.nm_command(), webcore_library_path], error_handler=Executive.ignore_error)
    271274        except OSError, e:
    272275            _log.warn("Failed to run nm: %s.  Can't determine WebCore supported features." % e)
Note: See TracChangeset for help on using the changeset viewer.