Revert "gitmodules: ignore = dirty for third_party/llama.cpp, whose working tree carries patches/ after every configure"

This reverts commit a69013a97c.
This commit is contained in:
Robert Karl committed 2026-10-19 18:40:21 -07:00
1 parent a69013a97c
commit 2a29acb411
3 files changed
+2 -5

No files matched your search

-1
View File
@@ -2,4 +2,3 @@
path = third_party/llama.cpp
url = https://github.com/ggml-org/llama.cpp.git
shallow = true
ignore = dirty
+1 -2
View File
@@ -41,8 +41,7 @@ The two `git` lines are the only ones that reach the network. For a box without
it and copy the tree over (`rsync -a UnbiasedStrata/ box:UnbiasedStrata/`; about 700 MB with `.git`), then `make build`
there; that is how the A6000 VM below was done (2026-10-19, fresh clone: 5 s clone, 27 s submodule, 20.6 min `make build`
at the default four archs on 12 cores and CUDA 12.4, 9 s `make test`). Configuring applies `patches/` to the submodule
in place; `.gitmodules` sets `ignore = dirty` for it, so `git status` stays quiet about those files and reports the
submodule only when its pinned commit changes (`git -C third_party/llama.cpp diff` still shows the patches).
in place, so `git status` shows `third_party/llama.cpp` modified from then on; that is expected.
`make build` configures once and builds only the four targets above, not upstream's `all`. Options, as `make`
variables:
+1 -2
View File
@@ -30,8 +30,7 @@ GPU, Pascal or newer, CUDA 12.x), each recorded below with the file, the reason
ignores `/third_party/llama.cpp*`.
- **`patches/*.patch` applied at configure time.** Each patch is checked in reverse first, so configuring twice
applies it once. The submodule's working tree is therefore modified after a configure; `git -C
third_party/llama.cpp diff` shows exactly the patches, and `.gitmodules` sets `ignore = dirty` so `git status`
does not report them (a changed submodule commit is still reported). UnbiasedStrata 1 applied its patch in `make` and in
third_party/llama.cpp diff` shows exactly the patches. UnbiasedStrata 1 applied its patch in `make` and in
CMake both; here it is CMake only, so a tree configured directly gets it too.
- **llama.cpp's libraries for the front end.** A second `add_subdirectory` of the submodule with
`LLAMA_BUILD_COMMON` and `LLAMA_BUILD_MTMD` on and tests, tools, examples, server, app, UI, prebuilt UI,