Hi, Here are two patches to allow Cygwin to build. 'edis' is disabled as it will not build with dynamic libraries, and libprofile also does not build on Cygwin. If anyone using Cygwin wants there functionality they will have to fix them :) Aaron Index: tools/Makefile ==================================================================--- tools/Makefile (revision 97136) +++ tools/Makefile (working copy) @@ -44,4 +44,8 @@ DIRS := $(filter-out lto gold, $(DIRS)) endif +ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin)) + PARALLEL_DIRS := $(filter-out edis, $(PARALLEL_DIRS)) +endif + include $(LEVEL)/Makefile.common Index: runtime/Makefile ==================================================================--- runtime/Makefile (revision 97136) +++ runtime/Makefile (working copy) @@ -20,8 +20,12 @@ PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS)) endif +ifeq ($(OS), Cygwin) +PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS)) endif +endif + include $(LEVEL)/Makefile.common install:: -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100304/47cb3873/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: Cygwin-2.7.patch Type: application/octet-stream Size: 818 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100304/47cb3873/attachment.obj>
> Here are two patches to allow Cygwin to build. 'edis' is disabled as it will > not build with dynamic libraries, and libprofile also does not build on > Cygwin. If anyone using Cygwin wants there functionality they will have to > fix them :)I think, it will be much better to have something like "have_dynamic_linking" variable inside make harness and use it accordingly.... -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
On Mar 4, 2010, at 8:25 AM, Aaron Gray wrote:> Hi, > > Here are two patches to allow Cygwin to build. 'edis' is disabled as it will not build with dynamic libraries, and libprofile also does not build on Cygwin. If anyone using Cygwin wants there functionality they will have to fix them :)I applied your patch for runtime, and applied a different patch to tools. Thanks. -Chris> > Aaron > > > Index: tools/Makefile > ==================================================================> --- tools/Makefile (revision 97136) > +++ tools/Makefile (working copy) > @@ -44,4 +44,8 @@ > DIRS := $(filter-out lto gold, $(DIRS)) > endif > > +ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin)) > + PARALLEL_DIRS := $(filter-out edis, $(PARALLEL_DIRS)) > +endif > + > include $(LEVEL)/Makefile.common > Index: runtime/Makefile > ==================================================================> --- runtime/Makefile (revision 97136) > +++ runtime/Makefile (working copy) > @@ -20,8 +20,12 @@ > PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS)) > endif > > +ifeq ($(OS), Cygwin) > +PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS)) > endif > > +endif > + > include $(LEVEL)/Makefile.common > > install:: > > <Cygwin-2.7.patch>_______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
On 5 March 2010 22:09, Aaron Gray <aaronngray.lists at googlemail.com> wrote:> Thanks Chris. Built LLVM okay from SVN and am running 'make check' and > building LLVM-GCC, also will check whether clang builds on Cygwin too. >LLVM-GGC builds and installs okay using gcc-4.2.4 minimum. 'make check' runs okay too. clang fails with a dynamic linking problem. Aaron -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100306/92ed765f/attachment.html>