diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-15 22:50:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-15 22:50:50 +0000 |
commit | 163974de4763c21db3c312aec0ffb834f5203d13 (patch) | |
tree | bc92642dadff6f4a91eb2554435e0f4d4c9d66ec /Makefile.config.in | |
parent | beb168992f581ed645c437be08d87016869b9fd8 (diff) |
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
Diffstat (limited to 'Makefile.config.in')
-rw-r--r-- | Makefile.config.in | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile.config.in b/Makefile.config.in index d066e772cb..94dce300bb 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 |