MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / get_cflags

Method get_cflags

tools/system_libs.py:1765–1775  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1763 return super().can_use() and self.eh_mode in {Exceptions.WASM_LEGACY, Exceptions.WASM}
1764
1765 def get_cflags(self):
1766 cflags = super().get_cflags()
1767 cflags.append('-DNDEBUG')
1768 if not self.is_mt and not self.is_ww:
1769 cflags.append('-D_LIBUNWIND_HAS_NO_THREADS')
1770 match self.eh_mode:
1771 case Exceptions.NONE:
1772 cflags.append('-D_LIBUNWIND_HAS_NO_EXCEPTIONS')
1773 case Exceptions.EMSCRIPTEN:
1774 cflags.append('-D__EMSCRIPTEN_EXCEPTIONS__')
1775 return cflags
1776
1777
1778class libmalloc(MTLibrary):

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
get_cflagsMethod · 0.45

Tested by

no test coverage detected