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/build.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/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 |