mirror of
https://github.com/iv-org/invidious.git
synced 2026-09-19 04:23:46 +00:00
feat: show message for unsupported Crystal versions at compile time (#5909)
Show a nice message for unsupported versions of the Crystal compiler, encouraging the user compiling Invidious, to update it's Crystal compiler version.
This commit is contained in:
13
Makefile
13
Makefile
@@ -6,6 +6,7 @@ RELEASE := 1
|
||||
STATIC := 0
|
||||
|
||||
NO_DBG_SYMBOLS := 0
|
||||
SKIP_VERSION_CHECK := 0
|
||||
|
||||
FLAGS ?=
|
||||
|
||||
@@ -27,6 +28,9 @@ ifeq ($(API_ONLY), 1)
|
||||
FLAGS += -Dapi_only
|
||||
endif
|
||||
|
||||
ifeq ($(SKIP_VERSION_CHECK), 1)
|
||||
FLAGS += -Dskip_version_check
|
||||
endif
|
||||
|
||||
# -----------------------
|
||||
# Main
|
||||
@@ -103,11 +107,12 @@ help:
|
||||
@echo ""
|
||||
@echo "Build options available for this Makefile:"
|
||||
@echo ""
|
||||
@echo " RELEASE Make a release build (Default: 1)"
|
||||
@echo " STATIC Link libraries statically (Default: 0)"
|
||||
@echo " RELEASE Make a release build (Default: 1)"
|
||||
@echo " STATIC Link libraries statically (Default: 0)"
|
||||
@echo ""
|
||||
@echo " API_ONLY Build invidious without a GUI (Default: 0)"
|
||||
@echo " NO_DBG_SYMBOLS Strip debug symbols (Default: 0)"
|
||||
@echo " API_ONLY Build invidious without a GUI (Default: 0)"
|
||||
@echo " NO_DBG_SYMBOLS Strip debug symbols (Default: 0)"
|
||||
@echo " SKIP_VERSION_CHECK Skips the Crystal compiler version check (Default: 0)"
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user