Implement get_allow_undefined_link_args in EmscriptenCPPCompiler
@@ -216,6 +216,9 @@ class EmscriptenCPPCompiler(LinkerEnvVarsMixin, BasicLinkerIsCompilerMixin, Clan
def get_soname_args(self, *args, **kwargs):
raise MesonException('Emscripten does not support shared libraries.')
+ def get_allow_undefined_link_args(self) -> typing.List[str]:
+ return ['-s', 'ERROR_ON_UNDEFINED_SYMBOLS=0']
+
class ArmclangCPPCompiler(ArmclangCompiler, CPPCompiler):
def __init__(self, exelist, version, for_machine: MachineChoice,
