branch: externals/ellama
commit 1ea4a383f7efc576243f4401b3f2a3f6b28d99b5
Author: Sergey Kostyaev <[email protected]>
Commit: Sergey Kostyaev <[email protected]>

    Add native compilation warnings check
    
    Added check-compile-warnings Make target and documented it in AGENTS.md. 
This
    allows developers to verify native compilation warnings.
---
 AGENTS.md | 1 +
 Makefile  | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/AGENTS.md b/AGENTS.md
index 647bb3160d..a20bb84d4b 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -4,6 +4,7 @@
 
 1. **Build**: `make build`
 2. **Run unit tests** (ERT): `make test`
+3. **Check native compilation warnings**: `make check-compile-warnings`
 
 ## Code Style Guidelines
 
diff --git a/Makefile b/Makefile
index 06875dfe21..5867ac5550 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 # Makefile for ellama project
 
-.PHONY: build test
+.PHONY: build test check-compile-warnings
 
 build:
        emacs -batch --eval "(package-initialize)" -f batch-byte-compile 
ellama*.el
@@ -8,5 +8,8 @@ build:
 test:
        emacs -batch --eval "(package-initialize)" -l ellama.el -l 
tests/test-ellama.el --eval "(ert t)"
 
+check-compile-warnings:
+       emacs --batch --eval "(package-initialize)" --eval "(setq 
native-comp-eln-load-path (list default-directory))" -L . -f 
batch-native-compile ellama*.el
+
 refill-news:
        emacs -batch --eval "(with-current-buffer (find-file-noselect 
\"./NEWS.org\") (setq fill-column 80) (fill-region (point-min) (point-max)) 
(save-buffer))"

Reply via email to