chore: separating heaptrack from debug build (#3249)

This commit is contained in:
gabrielmer 2025-01-24 11:14:37 +01:00 committed by GitHub
parent 2630b88b41
commit 0e9b332db0
2 changed files with 8 additions and 3 deletions

View File

@ -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'

View File

@ -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"} ."
)
} }
}