Skip to content

Commit

Permalink
Merge branch 'ms/msvc'
Browse files Browse the repository at this point in the history
* ms/msvc:
  Fix the exit code of MSVC build scripts on cygwin
  Fix MSVC build on cygwin
  • Loading branch information
Junio C Hamano committed Oct 9, 2009
2 parents dc3c7a7 + b5d18b8 commit 8ba5eff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ ifdef MSVC
CC = compat/vcbuild/scripts/clink.pl
AR = compat/vcbuild/scripts/lib.pl
CFLAGS =
BASIC_CFLAGS = -nologo -I. -I../zlib -Icompat/vcbuild -Icompat/vcbuild/include -DWIN32-D_CONSOLE -DHAVE_STRING_H -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE
BASIC_CFLAGS = -nologo -I. -I../zlib -Icompat/vcbuild -Icompat/vcbuild/include -DWIN32 -D_CONSOLE -DHAVE_STRING_H -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE
COMPAT_OBJS = compat/msvc.o compat/fnmatch/fnmatch.o compat/winansi.o
COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DNOGDI -DHAVE_STRING_H -DHAVE_ALLOCA_H -Icompat -Icompat/fnmatch -Icompat/regex -Icompat/fnmatch -DSTRIP_EXTENSION=\".exe\"
BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE -NODEFAULTLIB:MSVCRT.lib
Expand Down
2 changes: 1 addition & 1 deletion compat/vcbuild/scripts/clink.pl
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@
push(@args, @cflags);
}
#printf("**** @args\n");
exit system(@args);
exit (system(@args) != 0);
2 changes: 1 addition & 1 deletion compat/vcbuild/scripts/lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
}
unshift(@args, "lib.exe");
# printf("**** @args\n");
exit system(@args);
exit (system(@args) != 0);

0 comments on commit 8ba5eff

Please sign in to comment.