(self)
| 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() |
nothing calls this directly
no test coverage detected