From 4eeb706e84bc9e32aa5057e32d567ccab2c3cc2c Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 12 Feb 2012 18:23:23 -0800 Subject: [PATCH] build: Set RUST_THREADS=1 on FreeBSD to avoid a threading bug --- mk/platform.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mk/platform.mk b/mk/platform.mk index 45c1d3ab751e8..4f77cd1d11781 100644 --- a/mk/platform.mk +++ b/mk/platform.mk @@ -38,6 +38,12 @@ ifneq ($(findstring freebsd,$(CFG_OSTYPE)),) CFG_DEF_SUFFIX := .bsd.def CFG_INSTALL_NAME = CFG_PERF_TOOL := /usr/bin/time + + # FIXME (1825): We're deadlocking on FreeBSD + ifndef RUST_THREADS + RUST_THREADS=1 + export RUST_THREADS + endif endif ifneq ($(findstring linux,$(CFG_OSTYPE)),)