git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/1] contrib/buildsystems: fix Visual Studio Debug configuration

From
AGAlexandr Miloslavskiy via GitGitGadget <gitgitgadget@gmail.com>
Date
Sep 23, 2019, 08:28 UTC
Message-ID
<pull.348.git.gitgitgadget@gmail.com>

Even though Debug configuration builds, the resulting build is incorrect in a subtle way: it mixes up Debug and Release binaries, which in turn causes hard-to-predict bugs.

In my case, when git calls iconv library, iconv sets 'errno' and git then tests it, but in Debug and Release CRT those 'errno' are different memory locations.

This patch addresses 3 connected bugs: 1) Typo in '(Configuration)'. As a result, Debug configuration condition is always false and Release path is taken instead. 2) Regexp that replaced 'zlib.lib' with 'zlibd.lib' was only affecting the first occurrence. However, some projects have it listed twice. Previously this bug was hidden, because Debug path was never taken. I decided that avoiding double -lz in makefile is fragile and I'd better replace all occurrences instead. 3) In Debug, 'libcurl-d.lib' should be used instead of 'libcurl.lib'. Previously this bug was hidden, because Debug path was never taken.

Signed-off-by: Alexandr Miloslavskiy alexandr.miloslavskiy@syntevo.com
[alexandr.miloslavskiy@syntevo.com]
Alexandr Miloslavskiy (1):
  contrib/buildsystems: fix Visual Studio Debug configuration
 contrib/buildsystems/Generators/Vcxproj.pm | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)
base-commit: 4c86140027f4a0d2caaa3ab4bd8bfc5ce3c11c8a
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-348%2FSyntevoAlex%2F%230188_VisualStudio_Debug_build_fixes-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-348/SyntevoAlex/#0188_VisualStudio_Debug_build_fixes-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/348
-- 
gitgitgadget
Next: Alexandr Miloslavskiy via GitGitGadget
Message 1 of 12 in “contrib/buildsystems: fix Visual Studio Debug configuration”
  1. 0/1 contrib/buildsystems: fix Visual Studio Debug configurationAlexandr Miloslavskiy via GitGitGadget, Sep 23, 2019
  2. 1/1 contrib/buildsystems: fix Visual Studio Debug configurationAlexandr Miloslavskiy via GitGitGadget, Sep 23, 2019
  3. Alexandr MiloslavskiySep 24, 2019
  4. Johannes SchindelinSep 25, 2019
  5. Philip OakleyNov 27, 2019
  6. Alexandr MiloslavskiyNov 27, 2019
  7. Philip OakleyNov 27, 2019
  8. Philip OakleyNov 28, 2019
  9. Alexandr MiloslavskiyNov 28, 2019
  10. Philip OakleyNov 29, 2019
  11. Philip OakleyNov 29, 2019
  12. Philip OakleyDec 1, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.