From 60bca15e785e35d82775b8f9982879c9660c952f Mon Sep 17 00:00:00 2001 From: Nicolas Schneider Date: Thu, 26 May 2016 12:00:45 +0200 Subject: [PATCH] set working dir for sanity check compilation --- mesonbuild/compilers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py index 458a57910..1fc936a11 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()