summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCebtenzzre <cebtenzzre@gmail.com>2023-09-18 10:03:53 -0400
committerGitHub <noreply@github.com>2023-09-18 10:03:53 -0400
commit8781013ef654270cbead3e0011e33a6d690fb168 (patch)
tree0412c1b4bb2173bcc91e806049cf5d0f1ab2d569
parent7ddf185537b712ea0ccbc5f222ee92bed654914e (diff)
make : restore build-info.h dependency for several targets (#3205)
-rw-r--r--Makefile14
-rw-r--r--common/common.h1
-rw-r--r--examples/benchmark/benchmark-matmult.cpp1
-rw-r--r--examples/embd-input/embd-input-lib.cpp1
-rw-r--r--examples/embedding/embedding.cpp1
-rw-r--r--examples/perplexity/perplexity.cpp1
-rw-r--r--examples/quantize-stats/quantize-stats.cpp1
-rw-r--r--examples/quantize/quantize.cpp1
-rw-r--r--examples/save-load-state/save-load-state.cpp1
9 files changed, 14 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index dc8ae380..e07db8af 100644
--- a/Makefile
+++ b/Makefile
@@ -514,22 +514,22 @@ main: examples/main/main.cpp build-info.h ggml.
@echo '==== Run ./main -h for help. ===='
@echo
-simple: examples/simple/simple.cpp ggml.o llama.o common.o $(OBJS)
+simple: examples/simple/simple.cpp build-info.h ggml.o llama.o common.o $(OBJS)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
-quantize: examples/quantize/quantize.cpp ggml.o llama.o $(OBJS)
+quantize: examples/quantize/quantize.cpp build-info.h ggml.o llama.o $(OBJS)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
-quantize-stats: examples/quantize-stats/quantize-stats.cpp ggml.o llama.o $(OBJS)
+quantize-stats: examples/quantize-stats/quantize-stats.cpp build-info.h ggml.o llama.o $(OBJS)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
-perplexity: examples/perplexity/perplexity.cpp ggml.o llama.o common.o $(OBJS)
+perplexity: examples/perplexity/perplexity.cpp build-info.h ggml.o llama.o common.o $(OBJS)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
-embedding: examples/embedding/embedding.cpp ggml.o llama.o common.o $(OBJS)
+embedding: examples/embedding/embedding.cpp build-info.h ggml.o llama.o common.o $(OBJS)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
-save-load-state: examples/save-load-state/save-load-state.cpp ggml.o llama.o common.o $(OBJS)
+save-load-state: examples/save-load-state/save-load-state.cpp build-info.h ggml.o llama.o common.o $(OBJS)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
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
tests: $(TEST_TARGETS)
-benchmark-matmult: examples/benchmark/benchmark-matmult.cpp ggml.o $(OBJS)
+benchmark-matmult: examples/benchmark/benchmark-matmult.cpp build-info.h ggml.o $(OBJS)
$(CXX) $(CXXFLAGS) $(filter-out %.h,$^) -o $@ $(LDFLAGS)
./$@
diff --git a/common/common.h b/common/common.h
index f9dfd4a2..18aea38c 100644
--- a/common/common.h
+++ b/common/common.h
@@ -3,7 +3,6 @@
#pragma once
#include "llama.h"
-#include "build-info.h"
#define LOG_NO_FILE_LINE_FUNCTION
#include "log.h"
diff --git a/examples/benchmark/benchmark-matmult.cpp b/examples/benchmark/benchmark-matmult.cpp
index 561309ac..b16ad24d 100644
--- a/examples/benchmark/benchmark-matmult.cpp
+++ b/examples/benchmark/benchmark-matmult.cpp
@@ -1,3 +1,4 @@
+#include "build-info.h"
#include "common.h"
#include "ggml.h"
diff --git a/examples/embd-input/embd-input-lib.cpp b/examples/embd-input/embd-input-lib.cpp
index fc6e44eb..c995eef3 100644
--- a/examples/embd-input/embd-input-lib.cpp
+++ b/examples/embd-input/embd-input-lib.cpp
@@ -1,3 +1,4 @@
+#include "build-info.h"
#include "common.h"
#include "embd-input.h"
diff --git a/examples/embedding/embedding.cpp b/examples/embedding/embedding.cpp
index 0788f362..27d605f4 100644
--- a/examples/embedding/embedding.cpp
+++ b/examples/embedding/embedding.cpp
@@ -1,3 +1,4 @@
+#include "build-info.h"
#include "common.h"
#include "llama.h"
diff --git a/examples/perplexity/perplexity.cpp b/examples/perplexity/perplexity.cpp
index 4958cdfb..2b375e34 100644
--- a/examples/perplexity/perplexity.cpp
+++ b/examples/perplexity/perplexity.cpp
@@ -1,3 +1,4 @@
+#include "build-info.h"
#include "common.h"
#include "llama.h"
diff --git a/examples/quantize-stats/quantize-stats.cpp b/examples/quantize-stats/quantize-stats.cpp
index 9f930ded..94edb94d 100644
--- a/examples/quantize-stats/quantize-stats.cpp
+++ b/examples/quantize-stats/quantize-stats.cpp
@@ -1,4 +1,5 @@
#define LLAMA_API_INTERNAL
+#include "build-info.h"
#include "common.h"
#include "ggml.h"
#include "llama.h"
diff --git a/examples/quantize/quantize.cpp b/examples/quantize/quantize.cpp
index acb79e69..1c1d957e 100644
--- a/examples/quantize/quantize.cpp
+++ b/examples/quantize/quantize.cpp
@@ -1,3 +1,4 @@
+#include "build-info.h"
#include "common.h"
#include "llama.h"
diff --git a/examples/save-load-state/save-load-state.cpp b/examples/save-load-state/save-load-state.cpp
index eac30790..95527bb8 100644
--- a/examples/save-load-state/save-load-state.cpp
+++ b/examples/save-load-state/save-load-state.cpp
@@ -1,3 +1,4 @@
+#include "build-info.h"
#include "common.h"
#include "llama.h"