From 2ad09ed07049a6032cf1367f89f6a1e93c929555 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 1 Jun 2006 01:09:43 +0000 Subject: [PATCH] Support correct build: 1. Capture the ENABLE_THREADS configure variable in Makefile.config 2. Use ENABLE_THREADS to avoid building ParallelJIT if threads are not present. llvm-svn: 28609 --- Makefile.config.in | 3 +++ examples/Makefile | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.config.in b/Makefile.config.in index 47d0d81cbf1..03d62903375 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -201,6 +201,9 @@ OBJ_ROOT := . # When ENABLE_DOXYGEN is enabled, the doxygen documentation will be built ENABLE_DOXYGEN = @ENABLE_DOXYGEN@ +# Do we want to enable threads? +ENABLE_THREADS := @ENABLE_THREADS@ + # This option tells the Makefiles to produce verbose output. # It essentially prints the commands that make is executing #VERBOSE = 1 diff --git a/examples/Makefile b/examples/Makefile index d71651deda4..a6530ee6f5a 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -10,7 +10,10 @@ LEVEL=.. include $(LEVEL)/Makefile.config -#PARALLEL_DIRS:= $(patsubst %/Makefile,%,$(wildcard $(SourceDir)/*/Makefile)) -PARALLEL_DIRS:= ParallelJIT Fibonacci HowToUseJIT ModuleMaker BFtoLLVM +PARALLEL_DIRS:= Fibonacci HowToUseJIT ModuleMaker BFtoLLVM + +ifeq ($(ENABLE_THREADS),1) +PARALLEL_DIRS += ParallelJIT +endif include $(LEVEL)/Makefile.common