X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=Makefile.config.in;h=94dce300bbf37647b564510fa74b65d324b14ef9;hb=5a804e3e21f8cfeb8b1a65aae0ef8d0e063a5256;hp=d066e772cbb0186781cf386646904bf8fcd00887;hpb=57360d1f1cede3b26744d0ce3ade814fcc0f332d;p=oota-llvm.git diff --git a/Makefile.config.in b/Makefile.config.in index d066e772cbb..94dce300bbf 100644 --- a/Makefile.config.in +++ b/Makefile.config.in @@ -265,3 +265,11 @@ BINDINGS_TO_BUILD := @BINDINGS_TO_BUILD@ 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