aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-10-18 00:04:45 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-10-18 00:04:45 +0300
commit1c186d4a300f4e0d4355d9ce1f5c16af54d27dd9 (patch)
tree6d8d1e4a5ff909a3da86101025f9c6ca08a4537c /interpreter.py
parenta05f0385e3ba8a3cf95dea1ed6cf9c8bb266c707 (diff)
downloadmeson-1c186d4a300f4e0d4355d9ce1f5c16af54d27dd9.zip
meson-1c186d4a300f4e0d4355d9ce1f5c16af54d27dd9.tar.gz
meson-1c186d4a300f4e0d4355d9ce1f5c16af54d27dd9.tar.bz2
Only compile when doing cross compilation sanity checks because linking gets way too complicated.
Diffstat (limited to 'interpreter.py')
-rw-r--r--interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index 9e494f0..70ce271 100644
--- a/interpreter.py
+++ b/interpreter.py
@@ -1526,7 +1526,7 @@ class Interpreter():
i = i.held_object
except AttributeError:
pass
- if not isinstance(i, (str, build.BuildTarget)):
+ if not isinstance(i, (str, build.BuildTarget, build.CustomTarget)):
mlog.debug('Wrong type:', str(i))
raise InterpreterException('Invalid argument to run_target.')
cleaned_args.append(i)