diff options
author | Somasekhar Penugonda <somashekar.penugonda@cirrus.com> | 2018-03-06 14:19:16 +0530 |
---|---|---|
committer | Bedarkar, Malhar <malhar.bedarkar@cirrus.com> | 2018-03-07 17:42:53 -0600 |
commit | a470835778b4a9813e8a6046e04a958755797347 (patch) | |
tree | 0bdca3e1f2abe3eb0f1f382547519b2ba659e144 /mesonbuild/compilers/c.py | |
parent | a2ee76228e29f4cf5f52197dd2a726620445c81b (diff) | |
download | meson-a470835778b4a9813e8a6046e04a958755797347.zip meson-a470835778b4a9813e8a6046e04a958755797347.tar.gz meson-a470835778b4a9813e8a6046e04a958755797347.tar.bz2 |
Meson Github pull request - 3186 requested changes
- Fixing flake8 error in compilers.py - [E124] closing bracket does not match visual indentation
- Updating ARMCCompiler constructor in c.py to raise error as per comments
Diffstat (limited to 'mesonbuild/compilers/c.py')
-rw-r--r-- | mesonbuild/compilers/c.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/c.py b/mesonbuild/compilers/c.py index cc1a48e..01f76ef 100644 --- a/mesonbuild/compilers/c.py +++ b/mesonbuild/compilers/c.py @@ -891,6 +891,9 @@ class GnuCCompiler(GnuCompiler, CCompiler): class ARMCCompiler(ARMCompiler, CCompiler): def __init__(self, exelist, version, is_cross, exe_wrapper=None, defines=None, **kwargs): + # ARMCC is only a cross compiler + if not is_cross: + raise EnvironmentException('armcc supports only cross-compilation.') CCompiler.__init__(self, exelist, version, is_cross, exe_wrapper, **kwargs) ARMCompiler.__init__(self, defines) |