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 | 6c8368beeadbe580532e101473eeb7118e6d893e (patch) | |
| tree | 49c5a6aaae82f4bb3c83c39ac32cf92708d001eb | |
| parent | f659e700419528697da0c76133362acc8407f799 (diff) | |
| download | bcm5719-llvm-6c8368beeadbe580532e101473eeb7118e6d893e.tar.gz bcm5719-llvm-6c8368beeadbe580532e101473eeb7118e6d893e.zip | |
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
| -rw-r--r-- | llvm/Makefile.config.in | 3 | ||||
| -rw-r--r-- | llvm/examples/Makefile | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/llvm/Makefile.config.in b/llvm/Makefile.config.in index 47d0d81cbf1..03d62903375 100644 --- a/llvm/Makefile.config.in +++ b/llvm/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/llvm/examples/Makefile b/llvm/examples/Makefile index d71651deda4..a6530ee6f5a 100644 --- a/llvm/examples/Makefile +++ b/llvm/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 |

