aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Alexeyev <akari@taisei-project.org>2019-09-08 02:35:02 +0300
committerNirbheek Chauhan <nirbheek@centricular.com>2019-11-07 17:28:24 +0530
commit707f9a22b817c56e537745c5f521d94a105e5e79 (patch)
treeecc5c92fa89a314c30cb751b059b429fe25a58fe
parent86519ed094c1b85f7415afd5a80c201c29a9e627 (diff)
downloadmeson-707f9a22b817c56e537745c5f521d94a105e5e79.zip
meson-707f9a22b817c56e537745c5f521d94a105e5e79.tar.gz
meson-707f9a22b817c56e537745c5f521d94a105e5e79.tar.bz2
Implement get_allow_undefined_link_args in EmscriptenCPPCompiler
-rw-r--r--mesonbuild/compilers/cpp.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py
index f93db3e..25e487f 100644
--- a/mesonbuild/compilers/cpp.py
+++ b/mesonbuild/compilers/cpp.py
@@ -204,6 +204,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, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, **kwargs):