[llvm-commits] [llvm] r120275 - /llvm/trunk/tools/Makefile

NAKAMURA Takumi geek4civic at gmail.com
Sun Nov 28 16:20:28 PST 2010


Author: chapuni
Date: Sun Nov 28 18:20:28 2010
New Revision: 120275

URL: http://llvm.org/viewvc/llvm-project?rev=120275&view=rev
Log:
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.

Modified:
    llvm/trunk/tools/Makefile

Modified: llvm/trunk/tools/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/Makefile?rev=120275&r1=120274&r2=120275&view=diff
==============================================================================
--- llvm/trunk/tools/Makefile (original)
+++ llvm/trunk/tools/Makefile Sun Nov 28 18:20:28 2010
@@ -35,8 +35,6 @@
 # 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 @@
       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





More information about the llvm-commits mailing list