From b756c79d125c402931d0852f34c3444e947fcc8a Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 1 Jun 2006 01:09:43 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28609 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/Makefile b/examples/Makefile index d71651deda..a6530ee6f5 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 -- cgit v1.2.3