aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-05-26 21:53:24 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2016-05-26 21:53:24 +0300
commit979982e4e899036dc47fbf802e11412c5a247823 (patch)
tree3ed1b6e390d38bae8f791db902b38ed17f3c6cfb
parent7e664fde8c5aab229fc982e33575a15554aada66 (diff)
parent60bca15e785e35d82775b8f9982879c9660c952f (diff)
downloadmeson-979982e4e899036dc47fbf802e11412c5a247823.zip
meson-979982e4e899036dc47fbf802e11412c5a247823.tar.gz
meson-979982e4e899036dc47fbf802e11412c5a247823.tar.bz2
Merge workdir sanity check.
-rw-r--r--mesonbuild/compilers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 458a579..1fc936a 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -445,7 +445,7 @@ class CCompiler(Compiler):
ofile.close()
# Compile sanity check
cmdlist = self.exelist + extra_flags + [source_name] + self.get_output_args(binary_name)
- pc = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ pc = subprocess.Popen(cmdlist, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=work_dir)
(stdo, stde) = pc.communicate()
stdo = stdo.decode()
stde = stde.decode()