Compile json code with profiler when profiling is enabled

This commit is contained in:
Abdelrahman Said 2023-07-09 22:16:16 +01:00
parent 43ec97378c
commit 0360a2da35

View File

@ -51,7 +51,7 @@ PROF_BUILD_DIR=prof_build
# PROCESSOR # PROCESSOR
JSONSRC="../src/json/*.c" JSONSRC="../src/json/*.c"
JSONFLAGS="-c" JSONFLAGS="-c "
JSON_BUILD_DIR=json_build JSON_BUILD_DIR=json_build
PROCSRC="./$JSON_BUILD_DIR/*.o \ PROCSRC="./$JSON_BUILD_DIR/*.o \
@ -62,6 +62,7 @@ PROCSRC="./$JSON_BUILD_DIR/*.o \
PROCOUT=prochavr PROCOUT=prochavr
if [[ $ENABLE_PROFILING == true ]]; then if [[ $ENABLE_PROFILING == true ]]; then
JSONFLAGS+="-DENABLE_PROFILING"
PROCSRC+="./$PROF_BUILD_DIR/*.o" PROCSRC+="./$PROF_BUILD_DIR/*.o"
PROCFLAGS="-DENABLE_PROFILING" PROCFLAGS="-DENABLE_PROFILING"