aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-01-01 20:32:43 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-01-01 20:32:43 +0200
commit347dda92af535587b6485c9655561f960e8d1194 (patch)
tree76b95460351ca6870ff08943d101d93bfb5eac99 /interpreter.py
parent04ac73e8ea498c3fb64138d8214d6d25616161bc (diff)
downloadmeson-347dda92af535587b6485c9655561f960e8d1194.zip
meson-347dda92af535587b6485c9655561f960e8d1194.tar.gz
meson-347dda92af535587b6485c9655561f960e8d1194.tar.bz2
Some fixes.
Diffstat (limited to 'interpreter.py')
-rwxr-xr-xinterpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index 66059ac..60b8150 100755
--- a/interpreter.py
+++ b/interpreter.py
@@ -149,7 +149,7 @@ class Interpreter():
raise InvalidArguments('Line %d: Argument %s is not a string.' % str(a))
name = args[0]
sources = args[1:]
- if name in self.target:
+ if name in self.targets:
raise InvalidCode('Line %d, tried to create executable "%s", but a build target of that name already exists.' % (node.lineno(), name))
exe = Executable(name, sources)
self.targets[name] = exe