Skip to content

Commit 8781013

Browse files
authored
make : restore build-info.h dependency for several targets (#3205)
1 parent 7ddf185 commit 8781013

File tree

9 files changed

+14
-8
lines changed

9 files changed

+14
-8
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -514,22 +514,22 @@ main: examples/main/main.cpp build-info.h ggml.
514514
@echo '==== Run ./main -h for help. ===='
515515
@echo
516516

517-
simple: examples/simple/simple.cpp ggml.o llama.o common.o $(OBJS)
517+
simple: examples/simple/simple.cpp build-info.h ggml.o llama.o common.o $(OBJS)
518518
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
519519

520-
quantize: examples/quantize/quantize.cpp ggml.o llama.o $(OBJS)
520+
quantize: examples/quantize/quantize.cpp build-info.h ggml.o llama.o $(OBJS)
521521
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
522522

523-
quantize-stats: examples/quantize-stats/quantize-stats.cpp ggml.o llama.o $(OBJS)
523+
quantize-stats: examples/quantize-stats/quantize-stats.cpp build-info.h ggml.o llama.o $(OBJS)
524524
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
525525

526-
perplexity: examples/perplexity/perplexity.cpp ggml.o llama.o common.o $(OBJS)
526+
perplexity: examples/perplexity/perplexity.cpp build-info.h ggml.o llama.o common.o $(OBJS)
527527
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
528528

529-
embedding: examples/embedding/embedding.cpp ggml.o llama.o common.o $(OBJS)
529+
embedding: examples/embedding/embedding.cpp build-info.h ggml.o llama.o common.o $(OBJS)
530530
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
531531

532-
save-load-state: examples/save-load-state/save-load-state.cpp ggml.o llama.o common.o $(OBJS)
532+
save-load-state: examples/save-load-state/save-load-state.cpp build-info.h ggml.o llama.o common.o $(OBJS)
533533
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
534534

535535
server: examples/server/server.cpp examples/server/httplib.h examples/server/json.hpp examples/server/index.html.hpp examples/server/index.js.hpp examples/server/completion.js.hpp build-info.h ggml.o llama.o common.o grammar-parser.o $(OBJS)
@@ -582,7 +582,7 @@ build-info.h: $(wildcard .git/index) scripts/build-info.sh
582582

583583
tests: $(TEST_TARGETS)
584584

585-
benchmark-matmult: examples/benchmark/benchmark-matmult.cpp ggml.o $(OBJS)
585+
benchmark-matmult: examples/benchmark/benchmark-matmult.cpp build-info.h ggml.o $(OBJS)
586586
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
587587
./$@
588588

common/common.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
#pragma once
44

55
#include "llama.h"
6-
#include "build-info.h"
76

87
#define LOG_NO_FILE_LINE_FUNCTION
98
#include "log.h"

examples/benchmark/benchmark-matmult.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "build-info.h"
12
#include "common.h"
23
#include "ggml.h"
34

examples/embd-input/embd-input-lib.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "build-info.h"
12
#include "common.h"
23
#include "embd-input.h"
34

examples/embedding/embedding.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "build-info.h"
12
#include "common.h"
23
#include "llama.h"
34

examples/perplexity/perplexity.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "build-info.h"
12
#include "common.h"
23
#include "llama.h"
34

examples/quantize-stats/quantize-stats.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#define LLAMA_API_INTERNAL
2+
#include "build-info.h"
23
#include "common.h"
34
#include "ggml.h"
45
#include "llama.h"

examples/quantize/quantize.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "build-info.h"
12
#include "common.h"
23
#include "llama.h"
34

examples/save-load-state/save-load-state.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#include "build-info.h"
12
#include "common.h"
23
#include "llama.h"
34

0 commit comments

Comments
 (0)