Skip to content

Commit 078be07

Browse files
committed
log : print if build is debug [no ci]
1 parent 2948768 commit 078be07

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

common/common.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,13 @@ void gpt_init() {
369369
}
370370
}, NULL);
371371

372+
#ifdef NDEBUG
373+
const char * build_type = "";
374+
#else
375+
const char * build_type = " (debug)";
376+
#endif
372377

373-
LOG_INF("build: %d (%s) with %s for %s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET);
378+
LOG_INF("build: %d (%s) with %s for %s%s\n", LLAMA_BUILD_NUMBER, LLAMA_COMMIT, LLAMA_COMPILER, LLAMA_BUILD_TARGET, build_type);
374379
}
375380

376381
std::string gpt_params_get_system_info(const gpt_params & params) {

0 commit comments

Comments
 (0)