[llvm-commits] [llvm] r46026 - in /llvm/trunk: Makefile.config.in lib/VMCore/Makefile
Chris Lattner
sabre at nondot.org
Tue Jan 15 14:50:51 PST 2008
Author: lattner
Date: Tue Jan 15 16:50:50 2008
New Revision: 46026
URL: http://llvm.org/viewvc/llvm-project?rev=46026&view=rev
Log:
improve compatibility with mingw, patch by Alain Frisch
Modified:
llvm/trunk/Makefile.config.in
llvm/trunk/lib/VMCore/Makefile
Modified: llvm/trunk/Makefile.config.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.config.in?rev=46026&r1=46025&r2=46026&view=diff
==============================================================================
--- llvm/trunk/Makefile.config.in (original)
+++ llvm/trunk/Makefile.config.in Tue Jan 15 16:50:50 2008
@@ -265,3 +265,11 @@
ALL_BINDINGS := @ALL_BINDINGS@
OCAML_LIBDIR := @OCAML_LIBDIR@
+# When compiling under Mingw/Cygwin, executables such as tblgen
+# expect Windows paths, whereas the build system uses Unix paths.
+# The function SYSPATH transforms Unix paths into Windows paths.
+ifneq (,$(findstring -mno-cygwin, $(CXX)))
+ SYSPATH = $(shell echo $(1) | cygpath -m -f -)
+else
+ SYSPATH = $(1)
+endif
Modified: llvm/trunk/lib/VMCore/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Makefile?rev=46026&r1=46025&r2=46026&view=diff
==============================================================================
--- llvm/trunk/lib/VMCore/Makefile (original)
+++ llvm/trunk/lib/VMCore/Makefile Tue Jan 15 16:50:50 2008
@@ -21,7 +21,7 @@
$(ObjDir)/Intrinsics.gen.tmp: $(ObjDir)/.dir $(INTRINSICTDS) $(TBLGEN)
$(Echo) Building Intrinsics.gen.tmp from Intrinsics.td
- $(Verb) $(TableGen) $(INTRINSICTD) -o $@ -gen-intrinsic
+ $(Verb) $(TableGen) $(call SYSPATH, $(INTRINSICTD)) -o $(call SYSPATH, $@) -gen-intrinsic
$(GENFILE): $(ObjDir)/Intrinsics.gen.tmp
$(Verb) $(CMP) -s $@ $< || ( $(CP) $< $@ && \
More information about the llvm-commits
mailing list