aboutsummaryrefslogtreecommitdiff
path: root/interpreter.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-06-15 02:40:53 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2013-06-15 02:40:53 +0300
commit7e6d8454a4545dc26916e8db0d718d6d66369bd4 (patch)
treee12e1cc484ec0ba7cbb3c6671a57d6748c18b8a7 /interpreter.py
parent4887450de6ccaea5ce065b4544d4599d44161aa2 (diff)
downloadmeson-7e6d8454a4545dc26916e8db0d718d6d66369bd4.zip
meson-7e6d8454a4545dc26916e8db0d718d6d66369bd4.tar.gz
meson-7e6d8454a4545dc26916e8db0d718d6d66369bd4.tar.bz2
Precompiled headers work for C++.
Diffstat (limited to 'interpreter.py')
-rwxr-xr-xinterpreter.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/interpreter.py b/interpreter.py
index da53cc2..36bb318 100755
--- a/interpreter.py
+++ b/interpreter.py
@@ -484,7 +484,9 @@ class BuildTarget(InterpreterObject):
elif environment.is_source(pchlist[0]):
if not environment.is_header(pchlist[1]):
raise InterpreterException('PCH definition must contain one header and at most one source.')
- pchlist = [pchlist[1], pchlist[0]]
+ pchlist = [pchlist[1], pchlist[0]]
+ else:
+ raise InterpreterException('PCH argument %s is of unknown type.' % pchlist[0])
elif len(pchlist) > 2:
raise InterpreterException('PCH definition may have a maximum of 2 files.')
self.pch[language] = pchlist