Skip to content

Commit 4eeb706

Browse files
committed
build: Set RUST_THREADS=1 on FreeBSD to avoid a threading bug
1 parent 486d07a commit 4eeb706

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mk/platform.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ ifneq ($(findstring freebsd,$(CFG_OSTYPE)),)
3838
CFG_DEF_SUFFIX := .bsd.def
3939
CFG_INSTALL_NAME =
4040
CFG_PERF_TOOL := /usr/bin/time
41+
42+
# FIXME (1825): We're deadlocking on FreeBSD
43+
ifndef RUST_THREADS
44+
RUST_THREADS=1
45+
export RUST_THREADS
46+
endif
4147
endif
4248

4349
ifneq ($(findstring linux,$(CFG_OSTYPE)),)

0 commit comments

Comments
 (0)