]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Add git-based build information for better issue tracking (#1232)
authorDannyDaemonic <redacted>
Mon, 1 May 2023 16:23:47 +0000 (09:23 -0700)
committerGitHub <redacted>
Mon, 1 May 2023 16:23:47 +0000 (18:23 +0200)
commitf4cef87edfd1b2f8d5befd4fde54ca2e03987bea
treeb63939423df54fa5714e964e19e830811a990064
parent58b367c2d757c0ea12aec672382462b42204c724
Add git-based build information for better issue tracking (#1232)

* Add git-based build information for better issue tracking

* macOS fix

* "build (hash)" and "CMAKE_SOURCE_DIR" changes

* Redo "CMAKE_CURRENT_SOURCE_DIR" and clearer build messages

* Fix conditional dependency on missing target

* Broke out build-info.cmake, added find_package fallback, and added build into to all examples, added dependencies to Makefile

* 4 space indenting for cmake, attempt to clean up my mess in Makefile

* Short hash, less fancy Makefile, and don't modify build-info.h if it wouldn't change it
18 files changed:
.gitignore
CMakeLists.txt
Makefile
examples/benchmark/CMakeLists.txt
examples/benchmark/benchmark-matmult.cpp
examples/embedding/CMakeLists.txt
examples/embedding/embedding.cpp
examples/main/CMakeLists.txt
examples/main/main.cpp
examples/perplexity/CMakeLists.txt
examples/perplexity/perplexity.cpp
examples/quantize-stats/quantize-stats.cpp
examples/quantize/CMakeLists.txt
examples/quantize/quantize.cpp
examples/save-load-state/CMakeLists.txt
examples/save-load-state/save-load-state.cpp
scripts/build-info.cmake [new file with mode: 0644]
scripts/build-info.sh [new file with mode: 0755]