mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-04 06:53:12 +00:00
chore: separating heaptrack from debug build (#3249)
This commit is contained in:
parent
2630b88b41
commit
0e9b332db0
2
Makefile
2
Makefile
@ -83,7 +83,7 @@ HEAPTRACKER_INJECT ?= 0
|
|||||||
ifeq ($(HEAPTRACKER), 1)
|
ifeq ($(HEAPTRACKER), 1)
|
||||||
# Needed to make nimbus-build-system use the Nim's 'heaptrack_support' branch
|
# Needed to make nimbus-build-system use the Nim's 'heaptrack_support' branch
|
||||||
DOCKER_NIM_COMMIT := NIM_COMMIT=heaptrack_support
|
DOCKER_NIM_COMMIT := NIM_COMMIT=heaptrack_support
|
||||||
TARGET := debug
|
TARGET := prod-with-heaptrack
|
||||||
|
|
||||||
ifeq ($(HEAPTRACKER_INJECT), 1)
|
ifeq ($(HEAPTRACKER_INJECT), 1)
|
||||||
# the Nim compiler will load 'libheaptrack_inject.so'
|
# the Nim compiler will load 'libheaptrack_inject.so'
|
||||||
|
|||||||
@ -56,7 +56,12 @@ pipeline {
|
|||||||
)
|
)
|
||||||
booleanParam(
|
booleanParam(
|
||||||
name: 'DEBUG',
|
name: 'DEBUG',
|
||||||
description: 'Enable debug features (heaptrack).',
|
description: 'Enable debug features',
|
||||||
|
defaultValue: false
|
||||||
|
)
|
||||||
|
booleanParam(
|
||||||
|
name: 'HEAPTRACK',
|
||||||
|
description: 'Enable heaptrack build',
|
||||||
defaultValue: false
|
defaultValue: false
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@ -73,7 +78,7 @@ pipeline {
|
|||||||
"--build-arg=NIMFLAGS='${params.NIMFLAGS} -d:postgres ' " +
|
"--build-arg=NIMFLAGS='${params.NIMFLAGS} -d:postgres ' " +
|
||||||
"--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " +
|
"--build-arg=LOG_LEVEL='${params.LOWEST_LOG_LEVEL_ALLOWED}' " +
|
||||||
"--build-arg=DEBUG='${params.DEBUG ? "1" : "0"} ' " +
|
"--build-arg=DEBUG='${params.DEBUG ? "1" : "0"} ' " +
|
||||||
"--target=${params.DEBUG ? "debug" : "prod"} ."
|
"--target=${params.HEAPTRACK ? "prod-with-heaptrack" : "prod"} ."
|
||||||
)
|
)
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user