Changeset 139965 in webkit
- Timestamp:
- Jan 16, 2013 9:31:46 PM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r139961 r139965 1 2013-01-16 David Kilzer <ddkilzer@apple.com> 2 3 Use xcrun to find path to make for Mac port 4 <http://webkit.org/b/107091> 5 6 Reviewed by Dan Bernstein. 7 8 * Scripts/webkitpy/layout_tests/port/mac.py: 9 (MacPort._build_java_test_support): Call self.make_command(). 10 (MacPort.make_command): Add. Call xcrun_find(). 11 (MacPort.nm_command): Use self.xcrun_find(). 12 (MacPort.xcrun_find): Add. Extract from nm_command(). 13 1 14 2013-01-16 Sam Weinig <sam@webkit.org> 2 15 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/mac.py
r139679 r139965 1 1 # Copyright (C) 2011 Google Inc. All rights reserved. 2 # Copyright (C) 2012 Apple Inc. All rights reserved.2 # Copyright (C) 2012, 2013 Apple Inc. All rights reserved. 3 3 # 4 4 # Redistribution and use in source and binary forms, with or without … … 131 131 def _build_java_test_support(self): 132 132 java_tests_path = self._filesystem.join(self.layout_tests_dir(), "java") 133 build_java = [ "/usr/bin/make", "-C", java_tests_path]133 build_java = [self.make_command(), "-C", java_tests_path] 134 134 if self._executive.run_command(build_java, return_exit_code=True): # Paths are absolute, so we don't need to set a cwd. 135 135 _log.error("Failed to build Java support files: %s" % build_java) … … 269 269 self._helper = None 270 270 271 def make_command(self): 272 return self.xcrun_find('make', '/usr/bin/make') 273 271 274 def nm_command(self): 275 return self.xcrun_find('nm', 'nm') 276 277 def xcrun_find(self, command, fallback): 272 278 try: 273 return self._executive.run_command(['xcrun', '-find', 'nm']).rstrip()279 return self._executive.run_command(['xcrun', '-find', command]).rstrip() 274 280 except ScriptError: 275 _log.warn("xcrun failed; falling back to ' nm'.")276 return 'nm'281 _log.warn("xcrun failed; falling back to '%s'." % fallback) 282 return fallback
Note: See TracChangeset
for help on using the changeset viewer.