Skip to content

Commit f5f6588

Browse files
committed
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
1 parent 38d439f commit f5f6588

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

tools/Makefile

+8-3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ include $(LEVEL)/Makefile.config
3535
# These libraries build as dynamic libraries (.dylib /.so), they can only be
3636
# built if ENABLE_PIC is set.
3737
ifeq ($(ENABLE_PIC),1)
38-
# No support for dynamic libraries on windows targets.
39-
ifneq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW))
4038
# gold only builds if binutils is around. It requires "lto" to build before
4139
# it so it is added to DIRS.
4240
ifdef BINUTILS_INCDIR
@@ -54,11 +52,18 @@ ifeq ($(ENABLE_PIC),1)
5452
PARALLEL_DIRS += edis
5553
endif
5654
endif
57-
endif
5855
endif
5956

6057
ifdef LLVM_HAS_POLLY
6158
PARALLEL_DIRS += polly
6259
endif
6360

61+
# On Win32, loadable modules can be built with ENABLE_SHARED.
62+
ifneq ($(ENABLE_SHARED),1)
63+
ifneq (,$(filter $(TARGET_OS), Cygwin MingW))
64+
PARALLEL_DIRS := $(filter-out bugpoint-passes, \
65+
$(PARALLEL_DIRS))
66+
endif
67+
endif
68+
6469
include $(LEVEL)/Makefile.common

0 commit comments

Comments
 (0)