build: hard fail on unsupported platforms

Attempting to build on an unsupported platform should trigger
an error instead of a warning.
This commit is contained in:
CismonX 2025-03-21 09:06:30 +08:00
parent 750c16077c
commit a2dda5ec84
No known key found for this signature in database
GPG key ID: 3094873E29A482FB

View file

@ -28,7 +28,7 @@ AS_CASE(["${host_os}"], [linux*], [
], [freebsd*], [ ], [freebsd*], [
AS_VAR_SET([host_os_is_freebsd], [yes]) AS_VAR_SET([host_os_is_freebsd], [yes])
], [ ], [
AC_MSG_WARN(m4_normalize([Unsupported platform "${host_os}".])) AC_MSG_ERROR(m4_normalize([Unsupported platform "${host_os}".]))
]) ])
# -- Checks for programs -- # -- Checks for programs --