diff options
author | Andrei Alexeyev <akari@taisei-project.org> | 2019-09-08 03:51:45 +0300 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-11-07 17:28:24 +0530 |
commit | 2b5394ae291487e24854ce62552adec230fa899c (patch) | |
tree | cc4b5af731ec8295eef71ca4fb63720fe7460fff | |
parent | b4f7d87a89beac90a97bcbf9d651e188f572b843 (diff) | |
download | meson-2b5394ae291487e24854ce62552adec230fa899c.zip meson-2b5394ae291487e24854ce62552adec230fa899c.tar.gz meson-2b5394ae291487e24854ce62552adec230fa899c.tar.bz2 |
Implement get_linker_output_args in Emscripten compilers
-rw-r--r-- | mesonbuild/compilers/c.py | 3 | ||||
-rw-r--r-- | mesonbuild/compilers/cpp.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index afd5c6f..bcc3941 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -130,6 +130,9 @@ class EmscriptenCCompiler(LinkerEnvVarsMixin, BasicLinkerIsCompilerMixin, ClangC def get_allow_undefined_link_args(self) -> typing.List[str]: return ['-s', 'ERROR_ON_UNDEFINED_SYMBOLS=0'] + def get_linker_output_args(self, output: str) -> typing.List[str]: + return ['-o', output] + class ArmclangCCompiler(ArmclangCompiler, CCompiler): def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, **kwargs): diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 25e487f..084e45f 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -207,6 +207,9 @@ class EmscriptenCPPCompiler(LinkerEnvVarsMixin, BasicLinkerIsCompilerMixin, Clan def get_allow_undefined_link_args(self) -> typing.List[str]: return ['-s', 'ERROR_ON_UNDEFINED_SYMBOLS=0'] + def get_linker_output_args(self, output: str) -> typing.List[str]: + return ['-o', output] + class ArmclangCPPCompiler(ArmclangCompiler, CPPCompiler): def __init__(self, exelist, version, compiler_type, for_machine: MachineChoice, is_cross, exe_wrapper=None, **kwargs): |