diff options
author | Andrei Alexeyev <akari@taisei-project.org> | 2019-09-08 02:35:02 +0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-11-07 17:28:24 +0530 |
commit | 707f9a22b817c56e537745c5f521d94a105e5e79 (patch) | |
tree | ecc5c92fa89a314c30cb751b059b429fe25a58fe | |
parent | 86519ed094c1b85f7415afd5a80c201c29a9e627 (diff) | |
download | meson-707f9a22b817c56e537745c5f521d94a105e5e79.zip meson-707f9a22b817c56e537745c5f521d94a105e5e79.tar.gz meson-707f9a22b817c56e537745c5f521d94a105e5e79.tar.bz2 |
Implement get_allow_undefined_link_args in EmscriptenCPPCompiler
-rw-r--r-- | mesonbuild/compilers/cpp.py | 3 |
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): |