Skip to content

Commit 20db7e2

Browse files
alt-romesMarge Bot
authored andcommitted
configure: Default missing options to False when preparing ghc-toolchain Targets
This commit fixes building ghc with 9.2 as the boostrap compiler. The ghc-toolchain patch assumed all _STAGE0 options were available, and forgot to account for this missing information in 9.2. Ghc 9.2 does not have in settings whether ar supports -l, hence can't report it with --info (unliked 9.4 upwards). The fix is to default the missing information (we default "ar supports -l" and other missing options to False)
1 parent 7946303 commit 20db7e2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

m4/prep_target_file.m4

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ AC_DEFUN([PREP_BOOLEAN],[
5858
$1Bool=False
5959
;;
6060
*)
61-
AC_MSG_WARN([m4/prep_target_file.m4: Expecting YES/NO but got $$1 in $1])
61+
AC_MSG_WARN([m4/prep_target_file.m4: Expecting YES/NO but got $$1 in $1. Defaulting to False.])
62+
$1Bool=False
6263
;;
6364
esac
6465
AC_SUBST([$1Bool])
@@ -78,7 +79,8 @@ AC_DEFUN([PREP_NOT_BOOLEAN],[
7879
Not$1Bool=False
7980
;;
8081
*)
81-
AC_MSG_WARN([m4/prep_target_file.m4: Expecting YES/NO but got $$1 in $1])
82+
AC_MSG_WARN([m4/prep_target_file.m4: Expecting YES/NO but got $$1 in $1. Defaulting to False.])
83+
Not$1Bool=False
8284
;;
8385
esac
8486
AC_SUBST([Not$1Bool])

0 commit comments

Comments
 (0)