diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2024-10-30 17:05:21 +0100 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2024-10-30 17:05:21 +0100 |
| commit | 59acf23c0c7b1dfa2b40d8538c6ef3e27a701c18 (patch) | |
| tree | 8ec93c9bf39976ffbe15931edca04a2be201a9f0 | |
| parent | 2eeb6a731dcf0beb30ea1a14e3db4478c1b7055f (diff) | |
| parent | f51a3b8d2b52f83057d0b3be5686149984e66ada (diff) | |
| download | invidious-59acf23c0c7b1dfa2b40d8538c6ef3e27a701c18.tar.gz invidious-59acf23c0c7b1dfa2b40d8538c6ef3e27a701c18.tar.bz2 invidious-59acf23c0c7b1dfa2b40d8538c6ef3e27a701c18.zip | |
Makefile: Add MT option to enable the 'preview_mt' flag (#4993)
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.
| -rw-r--r-- | Makefile | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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 |
