[LLVMdev] llvm build errors on windows/mingw32
Dimitry Andric
dimitry at andric.com
Fri Oct 2 11:25:27 PDT 2009
On 2009-10-02 13:01, Jay Foad wrote:
> Surely it's required for any system that uses
> lib/System/Win32/Signals.inc, because there's code in that file that
> uses try/catch.
>
> MingW is the only system I know of that uses that file; Cygwin
> pretends to be Unix-like, so it uses lib/System/Unix/Signals.inc
> instead. So I'd suggest the attached (untested) patch.
It won't work as-is, because HOST_OS is not defined at that point in the
Makefile. Including Makefile.config helps, at least in my case. :)
E.g:
Index: lib/System/Makefile
===================================================================
--- lib/System/Makefile (revision 83249)
+++ lib/System/Makefile (working copy)
@@ -11,6 +11,12 @@
LIBRARYNAME = LLVMSystem
BUILD_ARCHIVE = 1
+include $(LEVEL)/Makefile.config
+
+ifeq ($(HOST_OS),MingW)
+REQUIRES_EH := 1
+endif
+
EXTRA_DIST = Unix Win32 README.txt
include $(LEVEL)/Makefile.common
More information about the llvm-dev
mailing list