aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/cpp.py
diff options
context:
space:
mode:
authorPhillip Cao <ftechz@gmail.com>2018-10-25 15:24:05 +1300
committerPhillip Cao <ftechz@gmail.com>2018-11-08 00:02:22 +1300
commit68c83cb213ab3f17593699020313535d5de1e92f (patch)
treea7d1e78ca6d0f8fe1b1ad0e19bbac5e1d10039ec /mesonbuild/compilers/cpp.py
parent996f07c546d6e82b0648a1d9f81d7474b1bec76e (diff)
downloadmeson-68c83cb213ab3f17593699020313535d5de1e92f.zip
meson-68c83cb213ab3f17593699020313535d5de1e92f.tar.gz
meson-68c83cb213ab3f17593699020313535d5de1e92f.tar.bz2
Add support for Renesas CC-RX toolchain
Diffstat (limited to 'mesonbuild/compilers/cpp.py')
-rw-r--r--mesonbuild/compilers/cpp.py29
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 []