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

Method GetCflagsC

tools/gyp/pylib/gyp/xcode_emulation.py:696–706  ·  view source on GitHub ↗

Returns flags that need to be added to .c, and .m compilations.

(self, configname)

Source from the content-addressed store, hash-verified

694 return cflags
695
696 def GetCflagsC(self, configname):
697 """Returns flags that need to be added to .c, and .m compilations."""
698 self.configname = configname
699 cflags_c = []
700 if self._Settings().get("GCC_C_LANGUAGE_STANDARD", "") == "ansi":
701 cflags_c.append("-ansi")
702 else:
703 self._Appendf(cflags_c, "GCC_C_LANGUAGE_STANDARD", "-std=%s")
704 cflags_c += self._Settings().get("OTHER_CFLAGS", [])
705 self.configname = None
706 return cflags_c
707
708 def GetCflagsCC(self, configname):
709 """Returns flags that need to be added to .cc, and .mm compilations."""

Callers 2

WriteTargetFunction · 0.95
AddCommandsForTargetFunction · 0.95

Calls 4

_SettingsMethod · 0.95
_AppendfMethod · 0.95
getMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected