Skip to content

Commit

Permalink
curl.sh: add future update pending a curl PR [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed May 20, 2024
1 parent f9a3eda commit 515bd24
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions curl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,20 @@ _VER="$1"

if [[ "${_CONFIG}" = *'debug'* ]]; then
options+=' -DENABLE_DEBUG=ON'
# curl would only set this automatically for the 'Debug' configuration
# Required for certain BUILD_TESTING=ON 'testdeps' build targets to link
# correctly.
# Officially we should use `-DCMAKE_BUILD_TYPE=Debug` which also enables
# debug info, but it has the side-effect of adding a `-d` suffix to the
# DLL and static lib names (`libcurl-d-x64.dll`, `libcurl-d.a`,
# `libcurl-d.dll.a` on Windows) which breaks packaging logic. We also
# strip debug info when making libs reproducible anyway.
# The `-d` suffix may be deleted/customized via `CMAKE_DEBUG_POSTFIX`.
CPPFLAGS+=' -DDEBUGBUILD'
# Pending https://github.com/curl/curl/pull/13592
if [ "${CURL_VER_}" != '8.7.1' ] && \
[ "${CURL_VER_}" != '8.8.0' ]; then
# curl would only set this automatically for the 'Debug' configuration
# Required for certain BUILD_TESTING=ON 'testdeps' build targets to link
# correctly.
# Officially we should use `-DCMAKE_BUILD_TYPE=Debug` which also enables
# debug info, but it has the side-effect of adding a `-d` suffix to the
# DLL and static lib names (`libcurl-d-x64.dll`, `libcurl-d.a`,
# `libcurl-d.dll.a` on Windows) which breaks packaging logic. We also
# strip debug info when making libs reproducible anyway.
# The `-d` suffix may be deleted/customized via `CMAKE_DEBUG_POSTFIX`.
CPPFLAGS+=' -DDEBUGBUILD'
fi
fi

if [[ "${_CONFIG}" = *'curltests'* ]]; then
Expand Down

0 comments on commit 515bd24

Please sign in to comment.