Index: trunk/src/build/mac/strip_save_dsym |
=================================================================== |
--- trunk/src/build/mac/strip_save_dsym (revision 227523) |
+++ trunk/src/build/mac/strip_save_dsym (working copy) |
@@ -276,7 +276,13 @@ |
# Strip the Mach-O file |
remove_dsym = True |
try: |
- strip_cmdline = ['xcrun', 'strip'] + sys.argv[1:] |
+ strip_path = "" |
+ if "SYSTEM_DEVELOPER_BIN_DIR" in os.environ: |
+ strip_path = os.environ["SYSTEM_DEVELOPER_BIN_DIR"] |
+ else: |
+ strip_path = "/usr/bin" |
+ strip_path = os.path.join(strip_path, "strip") |
+ strip_cmdline = [strip_path] + sys.argv[1:] |
strip_cmd = subprocess.Popen(strip_cmdline) |
if strip_cmd.wait() == 0: |
remove_dsym = False |