platform_macos_builders.py 517 B

123456789101112131415
  1. """Functions used to generate source files during build time"""
  2. import os
  3. def make_debug_macos(target, source, env):
  4. dst = str(target[0])
  5. if env["macports_clang"] != "no":
  6. mpprefix = os.environ.get("MACPORTS_PREFIX", "/opt/local")
  7. mpclangver = env["macports_clang"]
  8. os.system(mpprefix + "/libexec/llvm-" + mpclangver + "/bin/llvm-dsymutil {0} -o {0}.dSYM".format(dst))
  9. else:
  10. os.system("dsymutil {0} -o {0}.dSYM".format(dst))
  11. os.system("strip -u -r {0}".format(dst))