From 3fbc3f90d1bfdc68a3d12f3d08acde70e53befee Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 3 Feb 2025 14:18:16 -0800 Subject: [PATCH] compile: Improve support for C++ compilations on MSYS2. * lib/compile (func_file_conv): Use 'cygpath -w', not 'cygpath -m' (c:\... vs. c:/... resp.). * lib/ar-lib (func_file_conv): Likewise. --- lib/ar-lib | 2 +- lib/compile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ar-lib b/lib/ar-lib index f85f879d8..d0a7b5c8a 100755 --- a/lib/ar-lib +++ b/lib/ar-lib @@ -77,7 +77,7 @@ func_file_conv () file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin) - file=`cygpath -m "$file" || echo "$file"` + file=`cygpath -w "$file" || echo "$file"` ;; wine) file=`winepath -w "$file" || echo "$file"` diff --git a/lib/compile b/lib/compile index fc738d3d9..c404e89e4 100755 --- a/lib/compile +++ b/lib/compile @@ -81,7 +81,7 @@ func_file_conv () file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` ;; cygwin/*) - file=`cygpath -m "$file" || echo "$file"` + file=`cygpath -w "$file" || echo "$file"` ;; wine/*) file=`winepath -w "$file" || echo "$file"` -- 2.47.3