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

Method get_cflags

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

Source from the content-addressed store, hash-verified

797 super().__init__(**kwargs)
798
799 def get_cflags(self):
800 cflags = super().get_cflags()
801 match self.eh_mode:
802 case Exceptions.NONE:
803 cflags += ['-fno-exceptions']
804 case Exceptions.EMSCRIPTEN:
805 cflags += ['-sDISABLE_EXCEPTION_CATCHING=0']
806 case Exceptions.WASM_LEGACY:
807 cflags += ['-fwasm-exceptions', '-sWASM_LEGACY_EXCEPTIONS']
808 case Exceptions.WASM:
809 cflags += ['-fwasm-exceptions', '-sWASM_LEGACY_EXCEPTIONS=0']
810
811 return cflags
812
813 def get_base_name(self):
814 name = super().get_base_name()

Callers

nothing calls this directly

Calls 1

get_cflagsMethod · 0.45

Tested by

no test coverage detected