summaryrefslogtreecommitdiffstats
path: root/llvm/examples/ParallelJIT
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2005-08-24 10:07:20 +0000
committerReid Spencer <rspencer@reidspencer.com>2005-08-24 10:07:20 +0000
commitf85fabeb7153561b8e77f9f1d9a850417dbf7111 (patch)
tree33235cb27e32043a67f5e3d63eeeb27d31d8e892 /llvm/examples/ParallelJIT
parent7c1ba938beda6da4082225ffae81a35fc992aa1e (diff)
downloadbcm5719-llvm-f85fabeb7153561b8e77f9f1d9a850417dbf7111.tar.gz
bcm5719-llvm-f85fabeb7153561b8e77f9f1d9a850417dbf7111.zip
For PR616:
These patches make threading optional in LLVM. The configuration scripts are now modified to accept a --disable-threads switch. If this is used, the Mutex class will be implemented with all functions as no-op. Furthermore, linking against libpthread will not be done. Finally, the ParallelJIT example needs libpthread so its makefile was changed to always add -lpthread to the link line. llvm-svn: 23003
Diffstat (limited to 'llvm/examples/ParallelJIT')
-rw-r--r--llvm/examples/ParallelJIT/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/examples/ParallelJIT/Makefile b/llvm/examples/ParallelJIT/Makefile
index 4d92675a5c5..cb014a0082a 100644
--- a/llvm/examples/ParallelJIT/Makefile
+++ b/llvm/examples/ParallelJIT/Makefile
@@ -14,3 +14,5 @@ EXAMPLE_TOOL = 1
LLVMLIBS := JIT
include $(LEVEL)/Makefile.common
+
+LIBS += -lpthread
OpenPOWER on IntegriCloud