@@ -499,22 +499,22 @@ main: examples/main/main.cpp build-info.h ggml.
499499 @echo ' ==== Run ./main -h for help. ===='
500500 @echo
501501
502- simple : examples/simple/simple.cpp build-info.h ggml.o llama.o common.o $(OBJS )
502+ simple : examples/simple/simple.cpp ggml.o llama.o common.o $(OBJS )
503503 $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
504504
505- quantize : examples/quantize/quantize.cpp build-info.h ggml.o llama.o $(OBJS )
505+ quantize : examples/quantize/quantize.cpp ggml.o llama.o $(OBJS )
506506 $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
507507
508- quantize-stats : examples/quantize-stats/quantize-stats.cpp build-info.h ggml.o llama.o $(OBJS )
508+ quantize-stats : examples/quantize-stats/quantize-stats.cpp ggml.o llama.o $(OBJS )
509509 $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
510510
511- perplexity : examples/perplexity/perplexity.cpp build-info.h ggml.o llama.o common.o $(OBJS )
511+ perplexity : examples/perplexity/perplexity.cpp ggml.o llama.o common.o $(OBJS )
512512 $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
513513
514- embedding : examples/embedding/embedding.cpp build-info.h ggml.o llama.o common.o $(OBJS )
514+ embedding : examples/embedding/embedding.cpp ggml.o llama.o common.o $(OBJS )
515515 $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
516516
517- save-load-state : examples/save-load-state/save-load-state.cpp build-info.h ggml.o llama.o common.o $(OBJS )
517+ save-load-state : examples/save-load-state/save-load-state.cpp ggml.o llama.o common.o $(OBJS )
518518 $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
519519
520520server : 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 )
@@ -554,7 +554,7 @@ metal: examples/metal/metal.cpp ggml.o $(OBJS)
554554endif
555555
556556build-info.h : $(wildcard .git/index) scripts/build-info.sh
557- @sh scripts/build-info.sh > $@ .tmp
557+ @sh scripts/build-info.sh $( CC ) > $@ .tmp
558558 @if ! cmp -s $@ .tmp $@ ; then \
559559 mv $@ .tmp $@ ; \
560560 else \
@@ -567,7 +567,7 @@ build-info.h: $(wildcard .git/index) scripts/build-info.sh
567567
568568tests : $(TEST_TARGETS )
569569
570- benchmark-matmult : examples/benchmark/benchmark-matmult.cpp build-info.h ggml.o $(OBJS )
570+ benchmark-matmult : examples/benchmark/benchmark-matmult.cpp ggml.o $(OBJS )
571571 $(CXX ) $(CXXFLAGS ) $(filter-out % .h,$^ ) -o $@ $(LDFLAGS )
572572 ./$@
573573
0 commit comments