aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Schneider <nioncode+git@gmail.com>2016-05-26 12:00:45 +0200
committerNicolas Schneider <nioncode+git@gmail.com>2016-05-26 12:01:21 +0200
commit60bca15e785e35d82775b8f9982879c9660c952f (patch)
tree3d2332cc4e1e733f5cb1bae11650409ad3b8cdf6
parent7aa24c7d0a68959e4d29c41d157ee30ff97153ad (diff)
downloadmeson-60bca15e785e35d82775b8f9982879c9660c952f.zip
meson-60bca15e785e35d82775b8f9982879c9660c952f.tar.gz
meson-60bca15e785e35d82775b8f9982879c9660c952f.tar.bz2
set working dir for sanity check compilation
-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()