llvm.org GIT mirror llvm / 163974d
improve compatibility with mingw, patch by Alain Frisch git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46026 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 11 years ago
2 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
264264 ALL_BINDINGS := @ALL_BINDINGS@
265265 OCAML_LIBDIR := @OCAML_LIBDIR@
266266
267 # When compiling under Mingw/Cygwin, executables such as tblgen
268 # expect Windows paths, whereas the build system uses Unix paths.
269 # The function SYSPATH transforms Unix paths into Windows paths.
270 ifneq (,$(findstring -mno-cygwin, $(CXX)))
271 SYSPATH = $(shell echo $(1) | cygpath -m -f -)
272 else
273 SYSPATH = $(1)
274 endif
2020
2121 $(ObjDir)/Intrinsics.gen.tmp: $(ObjDir)/.dir $(INTRINSICTDS) $(TBLGEN)
2222 $(Echo) Building Intrinsics.gen.tmp from Intrinsics.td
23 $(Verb) $(TableGen) $(INTRINSICTD) -o $@ -gen-intrinsic
23 $(Verb) $(TableGen) $(call SYSPATH, $(INTRINSICTD)) -o $(call SYSPATH, $@) -gen-intrinsic
2424
2525 $(GENFILE): $(ObjDir)/Intrinsics.gen.tmp
2626 $(Verb) $(CMP) -s $@ $< || ( $(CP) $< $@ && \