From 98fd24ae9215436aa08c821be73d05a3887bca12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= Date: Thu, 21 Nov 2019 16:08:59 +0100 Subject: [PATCH] Windows package: restore several missing MEX files Since 533a4ff7db9d64deda2ccf766fdc869893c9d16d, several MEX files were missing in the Windows package (gensylv, k-order, dynare_simul, MS-SBVAR). The problem was that the environment variable containing the directory containing MSYS2 libraries (incl. matio and gsl) was not correctly passed to parallelized subshells. --- windows/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/build.sh b/windows/build.sh index d92d0428c..76980bbe0 100755 --- a/windows/build.sh +++ b/windows/build.sh @@ -219,7 +219,7 @@ NTHREADS=$((NTHREADS/${#TASKS[@]})) # Build all the mex files (parallel). # Some variables and functions need to be available in subshells. cd "$ROOT_DIRECTORY" -export TMP_DIRECTORY ROOT_DIRECTORY LIB32 LIB64 VERSION NTHREADS +export TMP_DIRECTORY ROOT_DIRECTORY LIB32 LIB32_MSYS2 LIB64 LIB64_MSYS2 VERSION NTHREADS export -f "${TASKS[@]}" parallel "set -ex;shopt -s globstar;" ::: "${TASKS[@]}"