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

Method get_cflags

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

Source from the content-addressed store, hash-verified

852 super().__init__(**kwargs)
853
854 def get_cflags(self):
855 cflags = super().get_cflags()
856 match self.eh_mode:
857 case Exceptions.EMSCRIPTEN:
858 cflags += ['-sSUPPORT_LONGJMP=emscripten',
859 '-sDISABLE_EXCEPTION_THROWING=0']
860 case Exceptions.WASM_LEGACY:
861 cflags += ['-sSUPPORT_LONGJMP=wasm',
862 '-sWASM_LEGACY_EXCEPTIONS',
863 '-sDISABLE_EXCEPTION_THROWING',
864 '-D__WASM_SJLJ__']
865 case Exceptions.WASM:
866 cflags += ['-sSUPPORT_LONGJMP=wasm',
867 '-sWASM_LEGACY_EXCEPTIONS=0',
868 '-sDISABLE_EXCEPTION_THROWING',
869 '-D__WASM_SJLJ__']
870 return cflags
871
872 def get_base_name(self):
873 name = super().get_base_name()

Callers

nothing calls this directly

Calls 1

get_cflagsMethod · 0.45

Tested by

no test coverage detected