summaryrefslogtreecommitdiff
path: root/src/vector.c
diff options
context:
space:
mode:
authorAlex Budovski <abudovski@gmail.com>2011-01-07 12:07:15 +1100
committerVicent Marti <tanoku@gmail.com>2011-01-08 22:17:01 +0200
commit9ace34c8deb97cb18aafe6bf2aa4a6b69dd5f117 (patch)
tree98fc5124bfffaa235cdbef1f56238fc7f8e4fcef /src/vector.c
parent6f9024a72b5de827e213b7e63de613237ae1eba7 (diff)
downloadlibgit2-9ace34c8deb97cb18aafe6bf2aa4a6b69dd5f117.tar.gz
Revised build configuration for MSVC.
Major changes and rationale: - /WX: absolutely vital when compiling in C-mode as the compiler is incredibly lenient on what is allowed to compile. It allows functions to be called without prototypes declared, treating them as functions returning int taking an unspecified (read: unrestricted) list of arguments, without any type checking! It will simply issue a warning, which is easily overlooked. A real example: it will allow you to call ceil(1.75) without first including <math.h> causing UB, returning bogus results like 1023 on the machine I tested on. - Release build separate from debug. Presently release builds don't exist. Consequently they are completely untested. Many bugs may only manifest themselves in release mode. The current configuration sets debug-only flags like /RTC1 which are incompatible with optimization (/O2). In addition, the Windows build of libgit2 has no optimized version. This change resolves this. - Added checksum generation in image headers. This is so debuggers don't complain about checksum mismatches and provides a small amount of consistency to binaries.
Diffstat (limited to 'src/vector.c')
0 files changed, 0 insertions, 0 deletions