Skip to content

Commit

Permalink
Implement get_linker_output_args in Emscripten compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
Akaricchi authored and dcbaker committed Oct 14, 2019
1 parent c20d407 commit dd162dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mesonbuild/compilers/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ def get_soname_args(self, *args, **kwargs):
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, for_machine: MachineChoice,
Expand Down
3 changes: 3 additions & 0 deletions mesonbuild/compilers/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ def get_soname_args(self, *args, **kwargs):
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, for_machine: MachineChoice,
Expand Down

0 comments on commit dd162dc

Please sign in to comment.