summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2024-10-09 18:07:04 +0200
committerSamantaz Fox <coding@samantaz.fr>2024-10-09 18:37:08 +0200
commitf51a3b8d2b52f83057d0b3be5686149984e66ada (patch)
tree477b7d38f36ff3891468cc5b5e7413ae726755e3 /Makefile
parenta88a723de3a3d96d8ff748cb117ae48265ee552c (diff)
downloadinvidious-f51a3b8d2b52f83057d0b3be5686149984e66ada.tar.gz
invidious-f51a3b8d2b52f83057d0b3be5686149984e66ada.tar.bz2
invidious-f51a3b8d2b52f83057d0b3be5686149984e66ada.zip
Makefile: Add MT option to enable the 'preview_mt' flag
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
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