diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-11-07 13:15:14 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 13:15:14 -0800 |
commit | 1d60a6a2edb36632136db8f3547577838bca6a4c (patch) | |
tree | de661c2df567ba75958b689b1edc476b701e4eda /mesonbuild/compilers/cpp.py | |
parent | d4ecd40613abb6a9de54edca71e0a6fe1c6c8c04 (diff) | |
parent | 76333d2a1e5e5fde5ebece478dae8a22091b5cb9 (diff) | |
download | meson-1d60a6a2edb36632136db8f3547577838bca6a4c.zip meson-1d60a6a2edb36632136db8f3547577838bca6a4c.tar.gz meson-1d60a6a2edb36632136db8f3547577838bca6a4c.tar.bz2 |
Merge pull request #4472 from ftechz/ccrx-support
Add support for Renesas CC-RX toolchain support
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r-- | mesonbuild/compilers/cpp.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/mesonbuild/compilers/cpp.py b/mesonbuild/compilers/cpp.py index 65a1033..e6f5803 100644 --- a/mesonbuild/compilers/cpp.py +++ b/mesonbuild/compilers/cpp.py @@ -30,6 +30,7 @@ from .compilers import ( IntelCompiler, ArmCompiler, ArmclangCompiler, + CcrxCompiler, ) from .c_function_attributes import CXX_FUNC_ATTRIBUTES @@ -412,3 +413,31 @@ class ArmCPPCompiler(ArmCompiler, CPPCompiler): def get_compiler_check_args(self): return [] + + +class CcrxCPPCompiler(CcrxCompiler, CPPCompiler): + def __init__(self, exelist, version, compiler_type, is_cross, exe_wrap=None, **kwargs): + CPPCompiler.__init__(self, exelist, version, is_cross, exe_wrap, **kwargs) + CcrxCompiler.__init__(self, compiler_type) + + # Override CCompiler.get_always_args + def get_always_args(self): + return ['-nologo', '-lang=cpp'] + + def get_option_compile_args(self, options): + return [] + + def get_compile_only_args(self): + return [] + + def get_output_args(self, target): + return ['-output=obj=%s' % target] + + def get_linker_output_args(self, outputname): + return ['-output=%s' % outputname] + + def get_option_link_args(self, options): + return [] + + def get_compiler_check_args(self): + return [] |