From 078be074a7a199bb52dd5cc73db9d1f9d44b9805 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Fri, 13 Sep 2024 11:15:01 +0300 Subject: [PATCH] log : print if build is debug [no ci] --- common/common.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/common.cpp b/common/common.cpp index 7ddb78f8c..8d0ed4f95 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -369,8 +369,13 @@ void gpt_init() { } }, NULL); +#ifdef NDEBUG + const char * build_type = ""; +#else + const char * build_type = " (debug)"; +#endif - LOG_INF("build: %d (%s) with %s for %s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET); + LOG_INF("build: %d (%s) with %s for %s%s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET, build_type); } std::string gpt_params_get_system_info(const gpt_params & params) {