From 81f24cc252b03c039382e9e619fc403d05d2d99d Mon Sep 17 00:00:00 2001 From: gabrielmer <101006718+gabrielmer@users.noreply.github.com> Date: Fri, 24 Jan 2025 11:14:37 +0100 Subject: [PATCH] chore: separating heaptrack from debug build (#3249) --- Makefile | 2 +- ci/Jenkinsfile.release | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 43e26b92e3..eb11367b02 100644 --- a/Makefile +++ b/Makefile @@ -83,7 +83,7 @@ HEAPTRACKER_INJECT ?= 0 ifeq ($(HEAPTRACKER), 1) # Needed to make nimbus-build-system use the Nim's 'heaptrack_support' branch DOCKER_NIM_COMMIT := NIM_COMMIT=heaptrack_support -TARGET := debug +TARGET := prod-with-heaptrack ifeq ($(HEAPTRACKER_INJECT), 1) # the Nim compiler will load 'libheaptrack_inject.so' diff --git a/ci/Jenkinsfile.release b/ci/Jenkinsfile.release index 102d392877..fcc353be83 100644 --- a/ci/Jenkinsfile.release +++ b/ci/Jenkinsfile.release @@ -56,7 +56,12 @@ pipeline { ) booleanParam( name: 'DEBUG', - description: 'Enable debug features (heaptrack).', + description: 'Enable debug features', + defaultValue: false + ) + booleanParam( + name: 'HEAPTRACK', + description: 'Enable heaptrack build', defaultValue: false ) } @@ -73,7 +78,7 @@ pipeline { "--build-arg=NIMFLAGS='${params.NIMFLAGS} -d:postgres ' " + "--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " + "--build-arg=DEBUG='${params.DEBUG ? "1" : "0"} ' " + - "--target=${params.DEBUG ? "debug" : "prod"} ." + "--target=${params.HEAPTRACK ? "prod-with-heaptrack" : "prod"} ." ) } } }