aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinijackson <minijackson@riseup.net>2016-02-24 15:07:43 +0100
committerMinijackson <minijackson@riseup.net>2016-02-24 15:07:43 +0100
commit3b688c6114e6ac6de65beb632cb3b3baa3cd13df (patch)
tree17da4483c3cd7e5d4b98f7a9f37702df28dae652
parent32b43e77abed69851c10577946068a0c029be908 (diff)
downloadmeson-3b688c6114e6ac6de65beb632cb3b3baa3cd13df.zip
meson-3b688c6114e6ac6de65beb632cb3b3baa3cd13df.tar.gz
meson-3b688c6114e6ac6de65beb632cb3b3baa3cd13df.tar.bz2
Create directories of unity temporary files
-rw-r--r--mesonbuild/backend/backends.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py
index a354d6e..d2176c7 100644
--- a/mesonbuild/backend/backends.py
+++ b/mesonbuild/backend/backends.py
@@ -125,6 +125,9 @@ class Backend():
outfileabs = os.path.join(self.environment.get_build_dir(), outfilename)
outfileabs_tmp = outfileabs + '.tmp'
abs_files.append(outfileabs)
+ outfileabs_tmp_dir = os.path.dirname(outfileabs_tmp)
+ if not os.path.exists(outfileabs_tmp_dir):
+ os.makedirs(outfileabs_tmp_dir)
outfile = open(outfileabs_tmp, 'w')
langlist[language] = outfile
result.append(outfilename)