diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 01:09:43 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2006-06-01 01:09:43 +0000 |
commit | b756c79d125c402931d0852f34c3444e947fcc8a (patch) | |
tree | 397f15c15a32567827a8d8ca3b7226ae65ada80e | |
parent | 398a6b72fbfb72163b70c67e4a17e783d098a825 (diff) | |
download | external_llvm-b756c79d125c402931d0852f34c3444e947fcc8a.zip external_llvm-b756c79d125c402931d0852f34c3444e947fcc8a.tar.gz external_llvm-b756c79d125c402931d0852f34c3444e947fcc8a.tar.bz2 |
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
-rw-r--r-- | Makefile.config.in | 3 | ||||
-rw-r--r-- | examples/Makefile | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/Makefile.config.in b/Makefile.config.in index 47d0d81..03d6290 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 d71651d..a6530ee 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 |