summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2010-11-29 00:20:28 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2010-11-29 00:20:28 +0000
commitf5f6588304f803f09e36e7fc23c8f756b200b127 (patch)
tree28b44756ed0e95f7fd615b2491f4efd6e2f9bd2d /tools/Makefile
parent38d439fb13ae465d53767c1c912abf40e64d6ee4 (diff)
downloadllvm-f5f6588304f803f09e36e7fc23c8f756b200b127.tar.gz
llvm-f5f6588304f803f09e36e7fc23c8f756b200b127.tar.bz2
llvm-f5f6588304f803f09e36e7fc23c8f756b200b127.tar.xz
tools/Makefile: Enable building lto, edis and bugpoint-passes on Cygming.
bugpoint-passes would be built with ENABLE_SHARED=1. You could try building gold on Cygming, though, it would fail. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 928933afa0..012d8e6f88 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -35,8 +35,6 @@ include $(LEVEL)/Makefile.config
# These libraries build as dynamic libraries (.dylib /.so), they can only be
# built if ENABLE_PIC is set.
ifeq ($(ENABLE_PIC),1)
- # No support for dynamic libraries on windows targets.
- ifneq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW))
# gold only builds if binutils is around. It requires "lto" to build before
# it so it is added to DIRS.
ifdef BINUTILS_INCDIR
@@ -54,11 +52,18 @@ ifeq ($(ENABLE_PIC),1)
PARALLEL_DIRS += edis
endif
endif
- endif
endif
ifdef LLVM_HAS_POLLY
PARALLEL_DIRS += polly
endif
+# On Win32, loadable modules can be built with ENABLE_SHARED.
+ifneq ($(ENABLE_SHARED),1)
+ ifneq (,$(filter $(TARGET_OS), Cygwin MingW))
+ PARALLEL_DIRS := $(filter-out bugpoint-passes, \
+ $(PARALLEL_DIRS))
+ endif
+endif
+
include $(LEVEL)/Makefile.common