From f51a3b8d2b52f83057d0b3be5686149984e66ada Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Wed, 9 Oct 2024 18:07:04 +0200 Subject: [PATCH] Makefile: Add MT option to enable the 'preview_mt' flag --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 9eb195df..ec22a0de 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,11 @@ STATIC := 0 NO_DBG_SYMBOLS := 0 +# Enable multi-threading. +# Warning: Experimental feature!! +# invidious is not stable when MT is enabled. +MT := 0 + FLAGS ?= @@ -19,6 +24,10 @@ ifeq ($(STATIC), 1) FLAGS += --static endif +ifeq ($(MT), 1) + FLAGS += -Dpreview_mt +endif + ifeq ($(NO_DBG_SYMBOLS), 1) FLAGS += --no-debug