diff options
author | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-06-21 09:53:58 -0400 |
---|---|---|
committer | Michael Hirsch, Ph.D <scivision@users.noreply.github.com> | 2019-06-24 14:06:33 -0400 |
commit | c89aa2094170b2ffd7151187c1c092db2a178f44 (patch) | |
tree | 77c80c268f286bcec6315977d1af5e35c218da2b | |
parent | 2c9725a4bb7986a3a73f7717b5da47f691133fc2 (diff) | |
download | meson-c89aa2094170b2ffd7151187c1c092db2a178f44.tar.gz |
known Python 3.5 on windows workaround for subprocess(cwd=str(Path))
-rw-r--r-- | mesonbuild/compilers/fortran.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonbuild/compilers/fortran.py b/mesonbuild/compilers/fortran.py index 502cd1dac..effdbadf9 100644 --- a/mesonbuild/compilers/fortran.py +++ b/mesonbuild/compilers/fortran.py @@ -69,8 +69,9 @@ class FortranCompiler(CLikeCompiler, Compiler): # cwd=work_dir is necessary on Windows especially for Intel compilers to avoid error: cannot write on sanitycheckf.obj # this is a defect with how Windows handles files and ifort's object file-writing behavior vis concurrent ProcessPoolExecutor. # This simple workaround solves the issue. + # FIXME: cwd=str(work_dir) is for Python 3.5 on Windows, when 3.5 is deprcated, this can become cwd=work_dir returncode = subprocess.run(self.exelist + extra_flags + [str(source_name), '-o', str(binary_name)], - cwd=work_dir).returncode + cwd=str(work_dir)).returncode if returncode != 0: raise EnvironmentException('Compiler %s can not compile programs.' % self.name_string()) if self.is_cross: |