Coverage Report

Created: 2026-06-22 06:47

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/llama.cpp/build/common/build-info.cpp
Line
Count
Source
1
#include "build-info.h"
2
3
#include <cstdio>
4
#include <string>
5
6
int LLAMA_BUILD_NUMBER = 9755;
7
char const * LLAMA_COMMIT = "0ef6f06d5";
8
char const * LLAMA_COMPILER = "Clang 22.0.0";
9
char const * LLAMA_BUILD_TARGET = "Linux x86_64";
10
11
0
int llama_build_number(void) {
12
0
    return LLAMA_BUILD_NUMBER;
13
0
}
14
15
0
const char * llama_commit(void) {
16
0
    return LLAMA_COMMIT;
17
0
}
18
19
0
const char * llama_compiler(void) {
20
0
    return LLAMA_COMPILER;
21
0
}
22
23
0
const char * llama_build_target(void) {
24
0
    return LLAMA_BUILD_TARGET;
25
0
}
26
27
0
const char * llama_build_info(void) {
28
0
    static std::string s = "b" + std::to_string(LLAMA_BUILD_NUMBER) + "-" + LLAMA_COMMIT;
29
0
    return s.c_str();
30
0
}
31
32
0
void llama_print_build_info(void) {
33
0
    fprintf(stderr, "%s: build = %d (%s)\n",      __func__, llama_build_number(), llama_commit());
34
    fprintf(stderr, "%s: built with %s for %s\n", __func__, llama_compiler(), llama_build_target());
35
0
}