From f347a980feeab00e7c089829b021c2177a9ed7dd Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev Date: Sun, 8 Sep 2019 02:35:02 +0300 Subject: Implement get_allow_undefined_link_args in EmscriptenCPPCompiler --- mesonbuild/compilers/cpp.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/compilers/cpp.py') diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 2b3b162..7380f89 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -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, -- cgit v1.1