浏览代码

"strip" fix for OSX

rdb 16 年之前
父节点
当前提交
8669567950
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      makepanda/makepanda.py

+ 4 - 1
makepanda/makepanda.py

@@ -4053,7 +4053,10 @@ def MakeRuntime():
                         omit = True
                 if omit: continue
                 CopyFile(GetOutputDir()+"/rlib/"+base, GetOutputDir()+"/lib/"+base)
-                oscmd("strip --strip-all "+GetOutputDir()+"/rlib/"+base)
+                if (sys.platform == "darwin"):
+                    oscmd("strip "+GetOutputDir()+"/rlib/"+base)
+                else:
+                    oscmd("strip --strip-all "+GetOutputDir()+"/rlib/"+base)
     
     # Invoke the make_package and make_contents scripts.
     command = sys.executable + " direct/src/plugin/make_package.py"