Skip to content

Commit

Permalink
Makefile: Add MT option to enable the 'preview_mt' flag (#4993)
Browse files Browse the repository at this point in the history
This PR add an MT option to the Makefile. When make is invoked with 'MT=1',
the 'preview_mt' flag is passed to the Crystal compiler.

It doesn't mean that invidious fully supports multi-threading, but at least
it provides an easy way for trying that out.

No related issue.
  • Loading branch information
SamantazFox committed Oct 30, 2024
2 parents 2eeb6a7 + f51a3b8 commit 59acf23
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 59acf23

Please # to comment.