diff options
author | Andrei Alexeyev <akari@taisei-project.org> | 2019-09-08 02:33:28 +0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-11-07 17:28:24 +0530 |
commit | 86519ed094c1b85f7415afd5a80c201c29a9e627 (patch) | |
tree | 3f089756b44cbc1d1c9f7b2e52251906c32a5e41 | |
parent | 7554b41e96bc9857de3b133ed1de1883d986cda9 (diff) | |
download | meson-86519ed094c1b85f7415afd5a80c201c29a9e627.zip meson-86519ed094c1b85f7415afd5a80c201c29a9e627.tar.gz meson-86519ed094c1b85f7415afd5a80c201c29a9e627.tar.bz2 |
Implement get_allow_undefined_link_args in EmscriptenCCompiler
-rw-r--r-- | mesonbuild/compilers/c.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index 1ec9146..afd5c6f 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -127,6 +127,10 @@ class EmscriptenCCompiler(LinkerEnvVarsMixin, BasicLinkerIsCompilerMixin, ClangC 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 ArmclangCCompiler(ArmclangCompiler, CCompiler): def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, **kwargs): CCompiler.__init__(self, exelist, version, for_machine, is_cross, exe_wrapper, **kwargs) |