Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/msvc
diff options
context:
space:
mode:
authorJo Shields <jo.shields@xamarin.com>2014-11-25 15:49:26 +0300
committerJo Shields <jo.shields@xamarin.com>2014-11-25 15:49:26 +0300
commit1d6b8a75fa31d60e9ddbc0b9eddbf05ed3fb6c12 (patch)
treeac0f628647546c31ff6f5f8e9caf10105be215bf /msvc
parent9f6f6a9ccef9e65adc281b5c0609f79d1dce6fcf (diff)
[msvc] Allow cygwin "make" to be called after winsetup.bat
As-is, winsetup.bat replaces config.h with winconfig.h, which is needed for the MSVC compilation - but breaks all further use of cygwin's make (e.g. to build the class library, or run "make install"). This patch introduces a new cygconfig.h as a backup prior to squashing config.h (if it exists, so the runtime can still be built without cygwin ever being used), and makes winconfig.h use it on non-MSVC compilers (i.e. cygwin)
Diffstat (limited to 'msvc')
-rwxr-xr-xmsvc/winsetup.bat1
1 files changed, 1 insertions, 0 deletions
diff --git a/msvc/winsetup.bat b/msvc/winsetup.bat
index 33a72f6b1bd..6b1c6f8461e 100755
--- a/msvc/winsetup.bat
+++ b/msvc/winsetup.bat
@@ -1,5 +1,6 @@
@echo off
cd ..
+if exist config.h if not exist cygconfig.h copy config.h cygconfig.h
copy winconfig.h config.h
goto end
:error