From 0360a2da3550715ebd9958b48c1d578319ff3777 Mon Sep 17 00:00:00 2001 From: Abdelrahman Said Date: Sun, 9 Jul 2023 22:16:16 +0100 Subject: [PATCH] Compile json code with profiler when profiling is enabled --- haversine_02/compile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/haversine_02/compile b/haversine_02/compile index 6f16bca..e04a963 100644 --- a/haversine_02/compile +++ b/haversine_02/compile @@ -51,7 +51,7 @@ PROF_BUILD_DIR=prof_build # PROCESSOR JSONSRC="../src/json/*.c" -JSONFLAGS="-c" +JSONFLAGS="-c " JSON_BUILD_DIR=json_build PROCSRC="./$JSON_BUILD_DIR/*.o \ @@ -62,6 +62,7 @@ PROCSRC="./$JSON_BUILD_DIR/*.o \ PROCOUT=prochavr if [[ $ENABLE_PROFILING == true ]]; then + JSONFLAGS+="-DENABLE_PROFILING" PROCSRC+="./$PROF_BUILD_DIR/*.o" PROCFLAGS="-DENABLE_PROFILING"