diff options
author | Phillip Cao <ftechz@gmail.com> | 2018-10-25 15:24:05 +1300 |
---|---|---|
committer | Phillip Cao <ftechz@gmail.com> | 2018-11-08 00:02:22 +1300 |
commit | 68c83cb213ab3f17593699020313535d5de1e92f (patch) | |
tree | a7d1e78ca6d0f8fe1b1ad0e19bbac5e1d10039ec /mesonbuild/build.py | |
parent | 996f07c546d6e82b0648a1d9f81d7474b1bec76e (diff) | |
download | meson-68c83cb213ab3f17593699020313535d5de1e92f.zip meson-68c83cb213ab3f17593699020313535d5de1e92f.tar.gz meson-68c83cb213ab3f17593699020313535d5de1e92f.tar.bz2 |
Add support for Renesas CC-RX toolchain
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r-- | mesonbuild/build.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py index 8bb49c0..814b6bb 100644 --- a/mesonbuild/build.py +++ b/mesonbuild/build.py @@ -1347,12 +1347,14 @@ class Executable(BuildTarget): if (for_windows(is_cross, environment) or for_cygwin(is_cross, environment) or 'cs' in self.compilers): self.suffix = 'exe' + elif ('c' in self.compilers and self.compilers['c'].get_id().startswith('arm') or + 'cpp' in self.compilers and self.compilers['cpp'].get_id().startswith('arm')): + self.suffix = 'axf' + elif ('c' in self.compilers and self.compilers['c'].get_id().startswith('ccrx') or + 'cpp' in self.compilers and self.compilers['cpp'].get_id().startswith('ccrx')): + self.suffix = 'abs' else: - if ('c' in self.compilers and self.compilers['c'].get_id().startswith('arm') or - 'cpp' in self.compilers and self.compilers['cpp'].get_id().startswith('arm')): - self.suffix = 'axf' - else: - self.suffix = '' + self.suffix = '' self.filename = self.name if self.suffix: self.filename += '.' + self.suffix |