From 8f703106f1ea6c31aab9b6cd24190a85cbff7080 Mon Sep 17 00:00:00 2001 From: Nick Gasson Date: Fri, 21 Oct 2022 19:23:45 +0100 Subject: [PATCH] Do not hard-code path to bash on Windows --- configure.ac | 5 ----- src/nvc.c | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/configure.ac b/configure.ac index bf5e1f4d..17624160 100644 --- a/configure.ac +++ b/configure.ac @@ -96,11 +96,6 @@ case $host_os in AC_SEARCH_LIBS([ffi_call], [ffi], [], [AC_MSG_ERROR(LLVM on Windows requires libffi)], []) - - AC_PATH_PROG([MINGW_BASH], ["bash"], - [AC_MSG_WARN([bash not found])]) - AC_DEFINE_UNQUOTED([BASH_PATH], ["$(cygpath -wm $MINGW_BASH)"], - [Path to Bash on Windows]) ;; *) diff --git a/src/nvc.c b/src/nvc.c index 9918e7ba..3b937f2f 100644 --- a/src/nvc.c +++ b/src/nvc.c @@ -758,8 +758,8 @@ static int install_cmd(int argc, char **argv) } const char *args[] = { -#ifdef BASH_PATH - BASH_PATH, +#ifdef __MINGW32__ + "bash", #endif tb_get(tb), NULL -- 2.39.2