aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralanNz <alangrimmer@gmail.com>2020-01-30 10:34:19 +1300
committerNirbheek Chauhan <nirbheek@centricular.com>2020-02-17 23:43:41 +0530
commite97bebd8babb4dab9b2a9c955f10d8600346603c (patch)
treeed19831c390dd9ee60a4cae6428af051d5649cf4
parent8e529272d426b1e690017fefb3d9a20607002329 (diff)
downloadmeson-e97bebd8babb4dab9b2a9c955f10d8600346603c.zip
meson-e97bebd8babb4dab9b2a9c955f10d8600346603c.tar.gz
meson-e97bebd8babb4dab9b2a9c955f10d8600346603c.tar.bz2
-Fixed Renesas RX Family compiler to work with latest meson, updated cross-file, fixed assembly file use
-rw-r--r--cross/ccrx.txt8
-rw-r--r--mesonbuild/compilers/c.py3
-rw-r--r--mesonbuild/compilers/mixins/arm.py2
-rw-r--r--mesonbuild/compilers/mixins/ccrx.py8
-rw-r--r--mesonbuild/linkers.py3
5 files changed, 18 insertions, 6 deletions
diff --git a/cross/ccrx.txt b/cross/ccrx.txt
index 5474bb0..097ec06 100644
--- a/cross/ccrx.txt
+++ b/cross/ccrx.txt
@@ -10,11 +10,13 @@ strip = 'rlink'
[properties]
# The '--cpu' option with the appropriate target type should be mentioned
# to cross compile c/c++ code with ccrx,.
-c_args = ['--cpu=rx600']
-cpp_args = ['--cpu=rx600']
+c_args = ['-cpu=rx600']
+cpp_args = ['-cpu=rx600']
+c_link_args = []
+cpp_link_args = []
[host_machine]
-system = 'bare metal' # Update with your system name - bare metal/OS.
+system = 'bare metal'
cpu_family = 'rx'
cpu = 'rx600'
endian = 'little'
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py
index 4647562..6bc95f4 100644
--- a/mesonbuild/compilers/c.py
+++ b/mesonbuild/compilers/c.py
@@ -392,6 +392,9 @@ class CcrxCCompiler(CcrxCompiler, CCompiler):
'none')})
return opts
+ def get_no_stdinc_args(self):
+ return []
+
def get_option_compile_args(self, options):
args = []
std = options['c_std']
diff --git a/mesonbuild/compilers/mixins/arm.py b/mesonbuild/compilers/mixins/arm.py
index d15faec..42b2142 100644
--- a/mesonbuild/compilers/mixins/arm.py
+++ b/mesonbuild/compilers/mixins/arm.py
@@ -157,7 +157,7 @@ class ArmclangCompiler:
self.base_options = ['b_pch', 'b_lto', 'b_pgo', 'b_sanitize', 'b_coverage',
'b_ndebug', 'b_staticpic', 'b_colorout']
# Assembly
- self.can_compile_suffixes.update('s')
+ self.can_compile_suffixes.add('s')
def get_pic_args(self) -> T.List[str]:
# PIC support is not enabled by default for ARM,
diff --git a/mesonbuild/compilers/mixins/ccrx.py b/mesonbuild/compilers/mixins/ccrx.py
index 5e61805..b859215 100644
--- a/mesonbuild/compilers/mixins/ccrx.py
+++ b/mesonbuild/compilers/mixins/ccrx.py
@@ -52,7 +52,7 @@ class CcrxCompiler:
raise EnvironmentException('ccrx supports only cross-compilation.')
self.id = 'ccrx'
# Assembly
- self.can_compile_suffixes.update('s')
+ self.can_compile_suffixes.add('src')
default_warn_args = [] # type: T.List[str]
self.warn_args = {'0': [],
'1': default_warn_args,
@@ -83,6 +83,12 @@ class CcrxCompiler:
def get_coverage_args(self) -> T.List[str]:
return []
+ def get_no_stdinc_args(self) -> T.List[str]:
+ return []
+
+ def get_no_stdlib_link_args(self) -> T.List[str]:
+ return []
+
def get_optimization_args(self, optimization_level: str) -> T.List[str]:
return ccrx_optimization_args[optimization_level]
diff --git a/mesonbuild/linkers.py b/mesonbuild/linkers.py
index 0a5c57e..9781813 100644
--- a/mesonbuild/linkers.py
+++ b/mesonbuild/linkers.py
@@ -668,7 +668,7 @@ class CcrxDynamicLinker(DynamicLinker):
def __init__(self, for_machine: mesonlib.MachineChoice,
*, version: str = 'unknown version'):
- super().__init__(['rlink.exe'], for_machine, 'rlink', '',
+ super().__init__(['rlink.exe'], for_machine, 'rlink', '', [],
version=version)
def get_accepts_rsp(self) -> bool:
@@ -769,6 +769,7 @@ class PGIStaticLinker(StaticLinker):
def get_output_args(self, target: str) -> T.List[str]:
return [target]
+
class VisualStudioLikeLinkerMixin:
_BUILDTYPE_ARGS = {