aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorNicolas Schneider <nioncode+git@gmail.com>2019-01-27 22:20:44 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2019-01-29 22:04:35 +0200
commit1058430898245cb904f7e617b63aa5ae8867edb2 (patch)
treeb4cca3eee1989225fb1521f7df2dee293b69fbf0 /mesonbuild
parent09739284be5982547d6b4979d3e457d65b8f0b79 (diff)
downloadmeson-1058430898245cb904f7e617b63aa5ae8867edb2.zip
meson-1058430898245cb904f7e617b63aa5ae8867edb2.tar.gz
meson-1058430898245cb904f7e617b63aa5ae8867edb2.tar.bz2
raise an error if PCH files are stored in different folders
Diffstat (limited to 'mesonbuild')
-rw-r--r--mesonbuild/build.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index d20b576..7909613 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1089,6 +1089,9 @@ You probably should put it in link_with instead.''')
pchlist = [pchlist[1], pchlist[0]]
else:
raise InvalidArguments('PCH argument %s is of unknown type.' % pchlist[0])
+
+ if (os.path.dirname(pchlist[0]) != os.path.dirname(pchlist[1])):
+ raise InvalidArguments('PCH files must be stored in the same folder.')
elif len(pchlist) > 2:
raise InvalidArguments('PCH definition may have a maximum of 2 files.')
for f in pchlist: