Skip to content

Commit

Permalink
CI: Use strict compile checks
Browse files Browse the repository at this point in the history
  • Loading branch information
minad committed Jan 28, 2025
1 parent a1a1c9c commit bfc0a46
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
.PHONY: all compile force-compile test clean check
.SUFFIXES: .el .elc

ifeq ($(CI),true)
STRICT = --eval '(setq compat-strict t byte-compile-error-on-warn t)'
else
STRICT =
endif

EMACS = emacs
MAKEINFO = makeinfo
BYTEC = compat-25.elc \
Expand Down Expand Up @@ -78,9 +84,7 @@ $(BYTEC): compat-macs.el

.el.elc:
@echo "Compiling $<"
@$(EMACS) -Q --batch -L . \
--eval '(setq compat-strict t byte-compile-error-on-warn t)' \
-f batch-byte-compile $<
@$(EMACS) -Q --batch -L . $(STRICT) -f batch-byte-compile $<

compat.info: compat.texi
$(MAKEINFO) $<

0 comments on commit bfc0a46

Please sign in to comment.