]> git.ipfire.org Git - thirdparty/curl.git/commit
winbuild: fix PE version info debug flag
authorJay Satiro <raysatiro@yahoo.com>
Wed, 22 May 2024 05:39:44 +0000 (01:39 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Wed, 22 May 2024 06:30:40 +0000 (02:30 -0400)
commit6eb99d7c1cbb56dbe563e71d544ee2e76f8cfc32
tree8de070558da45ebf8189e64f8312d7314eaf5477
parentfd567d4f06857f4fc8e2f64ea727b1318f76ad33
winbuild: fix PE version info debug flag

- Only set PE file flag VS_FF_DEBUG if curl.exe and libcurl.dll were
  built with winbuild option DEBUG=yes which builds with debug info.

VS_FF_DEBUG is a PE flag (Portable Executable file flag - dll, exe, etc)
that indicates the file contains or was built with debug info.

Prior to this change when winbuild was used to build curl, curl.exe
and libcurl.dll always had VS_FF_DEBUG set, regardless of build option
DEBUG=yes/no, due to some bad logic.

Closes https://github.com/curl/curl/pull/13739
winbuild/MakefileBuild.vc