2020# LAZARUS_REPO git URL
2121# MAKE_CMD 'make' on Linux/Windows/macOS, 'gmake' on BSD/Solaris
2222# (auto-detected if unset)
23- # MAKE_BUILD_BACKEND auto | lazbuild | fpc
24- # fpc — install FPC only; skip Lazarus/lazbuild
25- # lazbuild | auto — also clone Lazarus and build lazbuild
26- # (auto here always installs Lazarus; make.pas auto probes
27- # lazbuild on PATH at runtime and may still choose fpc)
23+ # MAKE_BUILD_BACKEND lazbuild | fpc (default: fpc)
24+ # fpc — install FPC only; skip Lazarus/lazbuild
25+ # lazbuild — also clone Lazarus and build lazbuild
2826#
2927# Outputs (appended to $GITHUB_PATH if set):
3028# $INSTALL_PREFIX/bin and $LAZARUS_DIR are added to PATH
@@ -41,12 +39,11 @@ source "$INSTALL_SCRIPT_DIR/ci/shared/common.sh"
4139
4240: " ${FPC_VERSION:? FPC_VERSION is required (e.g. 3.2.2)} "
4341: " ${FPC_TARGET:? FPC_TARGET is required (e.g. x86_64-linux)} "
44- : " ${MAKE_BUILD_BACKEND:? MAKE_BUILD_BACKEND is required (lazbuild|fpc|auto)} "
45- case " $MAKE_BUILD_BACKEND " in
46- fpc) INSTALL_LAZARUS=0 ;;
47- auto|lazbuild) INSTALL_LAZARUS=1 ;;
42+ case " ${MAKE_BUILD_BACKEND:- fpc} " in
43+ fpc) INSTALL_LAZARUS=0 ;;
44+ lazbuild) INSTALL_LAZARUS=1 ;;
4845 * )
49- echo " unknown MAKE_BUILD_BACKEND: $MAKE_BUILD_BACKEND " >&2
46+ echo " unknown MAKE_BUILD_BACKEND: $MAKE_BUILD_BACKEND (expected lazbuild|fpc) " >&2
5047 exit 1
5148 ;;
5249esac
263260# ci_fpc_info_probe instead of letting one emulation hiccup fail the install.
264261ci_fpc_info_probe -iV
265262
266- # ── Build Lazarus from source (lazbuild | auto only) ─ ────────────────
263+ # ── Build Lazarus from source (lazbuild backend only) ────────────────
267264#
268265# When INSTALL_LAZARUS=1, clone Lazarus and build lazbuild (~1–2 min).
269266# Packaged Lazarus on Linux/Windows pulls in the full IDE; we only need
0 commit comments