branch: development commit b32b74827fb27cac5e9b2c64873b4548c4b837f6 Author: Ileana Dumitrescu <ileanadumitresc...@gmail.com> AuthorDate: Wed Dec 11 18:43:47 2024 +0200
testsuite.at: Update testsuite config for MSVC * tests/testsuite.at: Make symlink tool mlink for MSVC. --- tests/testsuite.at | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/tests/testsuite.at b/tests/testsuite.at index c5c85ec0..a080d70a 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -32,7 +32,7 @@ for tool in ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF; do done export ACLOCAL AUTOHEADER AUTOCONF AUTOMAKE AUTORECONF eval `$LIBTOOL --config | $EGREP '^(objdir|objext)'` -eval `$LIBTOOL --config | $EGREP '^(host|host_os|host_alias|build|build_alias|to_host_file_cmd|to_tool_file_cmd)='` +eval `$LIBTOOL --config | $EGREP '^(host|host_os|host_alias|build|build_os|build_alias|to_host_file_cmd|to_tool_file_cmd)='` configure_options=--prefix=/nonexistent if test -n "$host_alias"; then configure_options="$configure_options --host $host_alias" @@ -72,6 +72,18 @@ unset MFLAGS MAKEFLAGS MAKELEVEL __MKLVL__ MAKE_JOBS_FIFO case $host_os in aix*) umask o-rwx ;; esac + +# Use mklink when symlinking for MSVC +if $LIBTOOL --config | $EGREP '^nm_interface="MS dumpbin"' >/dev/null; then + case $host_os,$build_os in + mingw*,cygwin*) + LN_S="cmd /c mklink" ;; + mingw*,*) # MSYS + LN_S="cmd //c mklink" ;; + *) + LN_S="cmd /c mklink" ;; + esac +fi m4_divert_pop([PREPARE_TESTS])dnl