MCPcopy Index your code
hub / github.com/nodejs/node / _GetDebugInfoPostbuilds

Method _GetDebugInfoPostbuilds

tools/gyp/pylib/gyp/xcode_emulation.py:1091–1111  ·  view source on GitHub ↗

Returns a list of shell commands that contain the shell commands necessary to massage this target's debug information. These should be run as postbuilds before the actual postbuilds run.

(self, configname, output, output_binary, quiet)

Source from the content-addressed store, hash-verified

1089 return result
1090
1091 def _GetDebugInfoPostbuilds(self, configname, output, output_binary, quiet):
1092 """Returns a list of shell commands that contain the shell commands
1093 necessary to massage this target's debug information. These should be run
1094 as postbuilds before the actual postbuilds run."""
1095 self.configname = configname
1096
1097 # For static libraries, no dSYMs are created.
1098 result = []
1099 if (
1100 self._Test("GCC_GENERATE_DEBUGGING_SYMBOLS", "YES", default="YES")
1101 and self._Test(
1102 "DEBUG_INFORMATION_FORMAT", "dwarf-with-dsym", default="dwarf"
1103 )
1104 and self.spec["type"] != "static_library"
1105 ):
1106 if not quiet:
1107 result.append("echo DSYMUTIL\\(%s\\)" % self.spec["target_name"])
1108 result.append("dsymutil {} -o {}".format(output_binary, output + ".dSYM"))
1109
1110 self.configname = None
1111 return result
1112
1113 def _GetTargetPostbuilds(self, configname, output, output_binary, quiet=False):
1114 """Returns a list of shell commands that contain the shell commands

Callers 1

_GetTargetPostbuildsMethod · 0.95

Calls 3

_TestMethod · 0.95
formatMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected