Changeset 118621 in webkit
- Timestamp:
- May 26, 2012, 11:52:07 PM (14 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
Scripts/webkitpy/layout_tests/port/mac.py (modified) (2 diffs)
-
Scripts/webkitpy/layout_tests/port/webkit.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r118594 r118621 1 2012-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 1 15 2012-05-25 Lynn Neir <lynn.neir@skype.net> 2 16 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/mac.py
r115977 r118621 1 1 # Copyright (C) 2011 Google Inc. All rights reserved. 2 # Copyright (C) 2012 Apple Inc. All rights reserved. 2 3 # 3 4 # Redistribution and use in source and binary forms, with or without … … 240 241 pass 241 242 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 2 2 # Copyright (C) 2010 Google Inc. All rights reserved. 3 3 # 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. 5 5 # 6 6 # Redistribution and use in source and binary forms, with or without … … 263 263 return None 264 264 265 def nm_command(self): 266 return 'nm' 267 265 268 def _webcore_symbols_string(self): 266 269 webcore_library_path = self._path_to_webcore_library() … … 268 271 return None 269 272 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) 271 274 except OSError, e: 272 275 _log.warn("Failed to run nm: %s. Can't determine WebCore supported features." % e)
Note:
See TracChangeset
for help on using the changeset viewer.