summaryrefslogtreecommitdiff
path: root/examples/infill/infill.cpp
diff options
context:
space:
mode:
authorcebtenzzre <cebtenzzre@gmail.com>2023-11-02 02:50:16 -0400
committerGitHub <noreply@github.com>2023-11-02 08:50:16 +0200
commitb12fa0d1c13596869c512f49a526b979c94787cc (patch)
tree663ddc7bd68e32f219127839e0155a4acca21c53 /examples/infill/infill.cpp
parent4d719a6d4e74b9a98e75f826f865f3153717d54b (diff)
build : link against build info instead of compiling against it (#3879)
* cmake : fix build when .git does not exist * cmake : simplify BUILD_INFO target * cmake : add missing dependencies on BUILD_INFO * build : link against build info instead of compiling against it * zig : make build info a .cpp source instead of a header Co-authored-by: Matheus C. França <matheus-catarino@hotmail.com> * cmake : revert change to CMP0115 --------- Co-authored-by: Matheus C. França <matheus-catarino@hotmail.com>
Diffstat (limited to 'examples/infill/infill.cpp')
-rw-r--r--examples/infill/infill.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/infill/infill.cpp b/examples/infill/infill.cpp
index 9c52b7bb..62f5ce3c 100644
--- a/examples/infill/infill.cpp
+++ b/examples/infill/infill.cpp
@@ -2,7 +2,6 @@
#include "console.h"
#include "llama.h"
-#include "build-info.h"
#include "grammar-parser.h"
#include <cassert>
@@ -184,8 +183,8 @@ int main(int argc, char ** argv) {
LOG_TEE("%s: warning: scaling RoPE frequency by %g.\n", __func__, params.rope_freq_scale);
}
- LOG_TEE("%s: build = %d (%s)\n", __func__, BUILD_NUMBER, BUILD_COMMIT);
- LOG_TEE("%s: built with %s for %s\n", __func__, BUILD_COMPILER, BUILD_TARGET);
+ LOG_TEE("%s: build = %d (%s)\n", __func__, LLAMA_BUILD_NUMBER, LLAMA_COMMIT);
+ LOG_TEE("%s: built with %s for %s\n", __func__, LLAMA_COMPILER, LLAMA_BUILD_TARGET);
if (params.seed == LLAMA_DEFAULT_SEED) {
params.seed = time(NULL);