Skip to content

Commit

Permalink
Makefile: Add MT option to enable the 'preview_mt' flag
Browse files Browse the repository at this point in the history
  • Loading branch information
SamantazFox committed Oct 9, 2024
1 parent a88a723 commit f51a3b8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?=

Expand All @@ -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
Expand Down

0 comments on commit f51a3b8

Please sign in to comment.