← Commit list

1d7ea23fa1

Daniel Stenberg
Daniel Stenberg
2026-08-31
SUCCESS Duration: 408s

Subject

perf: restore the -DDEBUGBUILD for debug builds

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/perf/CMakeLists.txt+1 -0
@@ -51,6 +51,7 @@ target_include_directories(${BUNDLE} PRIVATE
"${PROJECT_SOURCE_DIR}/src" # for toolx
"${CMAKE_CURRENT_SOURCE_DIR}" # for the generated bundle source to find included test sources
)
+target_compile_definitions(${BUNDLE} PRIVATE ${CURL_DEBUG_MACROS})
set_target_properties(${BUNDLE} PROPERTIES OUTPUT_NAME "${BUNDLE}" PROJECT_LABEL "Test ${BUNDLE}" UNITY_BUILD OFF)
if(NOT _CURL_TESTS_CONCAT)
tests/perf/Makefile.am+4 -0
@@ -50,6 +50,10 @@ CFLAGS += @CURL_CFLAG_EXTRAS@
# Prevent LIBS from being used for all link targets
LIBS = $(BLANK_AT_MAKETIME)
+if DEBUGBUILD
+AM_CPPFLAGS += -DDEBUGBUILD
+endif
+
if USE_CPPFLAG_CURL_STATICLIB
AM_CPPFLAGS += -DCURL_STATICLIB
curlx_c_lib =
tests/perf/base64.c+1 -1
@@ -48,7 +48,7 @@ static int test_base64(int argc, const char **argv)
start = curlx_now();
for(loop = 0; loop < loops; loop++) {
- char *encoded;
+ char *encoded = NULL;
size_t enclen;
CURLcode result =
curlx_base64_encode(array, sizeof(array), &encoded, &enclen);