aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/compilers.py
diff options
context:
space:
mode:
authorChristoph Behle <behlec@gmail.com>2018-06-12 19:43:49 +0200
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-18 07:52:15 +0000
commit9e0397805e80adcace18eaeb9a31822dd793264b (patch)
tree67fd64c0b990e828b754c35d3430505a239a86c5 /mesonbuild/compilers/compilers.py
parent93b5a42adac4f06173020ab272c3a070a2dfdf6a (diff)
downloadmeson-9e0397805e80adcace18eaeb9a31822dd793264b.zip
meson-9e0397805e80adcace18eaeb9a31822dd793264b.tar.gz
meson-9e0397805e80adcace18eaeb9a31822dd793264b.tar.bz2
Use stub to report misuse of get_define
Instead of checking on the call site add a stub to Compiler which raises an exception.
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r--mesonbuild/compilers/compilers.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index 68d4c5a..87e3d78 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -699,6 +699,9 @@ class Compiler:
def get_default_suffix(self):
return self.default_suffix
+ def get_define(self, dname, prefix, env, extra_args, dependencies):
+ raise EnvironmentException('%s does not support get_define ' % self.get_id())
+
def get_exelist(self):
return self.exelist[:]