[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/compat ffea200f0e 1/2: Disable byte-compilation for com
From: |
ELPA Syncer |
Subject: |
[elpa] externals/compat ffea200f0e 1/2: Disable byte-compilation for compat-macs and compat-tests |
Date: |
Mon, 9 Jan 2023 08:57:29 -0500 (EST) |
branch: externals/compat
commit ffea200f0eae126d1cc5b17de43087161387022e
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Disable byte-compilation for compat-macs and compat-tests
This ensures that straight users and users who install the package
directly from the source don't get the unnecessarily byte-compiled
file. We still compile both files on CI for error checking.
---
.github/workflows/makefile.yml | 4 +++-
Makefile | 2 +-
compat-tests.el | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml
index 98da32f9b5..3ba1d8886b 100644
--- a/.github/workflows/makefile.yml
+++ b/.github/workflows/makefile.yml
@@ -38,6 +38,8 @@ jobs:
with:
version: ${{ matrix.emacs-version }}
- name: Compile
- run: make compile
+ run: |
+ sed -i "s/ no-byte-compile: t;//" compat-macs.el compat-tests.el
+ make compile
- name: Run tests
run: make test
diff --git a/Makefile b/Makefile
index df59a40629..4d2cd4e92f 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ BYTEC = compat-25.elc \
compat-28.elc \
compat-29.elc \
compat.elc \
+ compat-macs.elc \
compat-tests.elc
all: compile
@@ -19,7 +20,6 @@ compile: $(BYTEC)
test: compile
$(EMACS) --version
$(EMACS) -Q --batch -L . -l compat-tests.el -f
ert-run-tests-batch-and-exit
- $(EMACS) -Q --batch -L . -l compat-tests.elc -f
ert-run-tests-batch-and-exit
clean:
$(RM) $(BYTEC) compat.info
diff --git a/compat-tests.el b/compat-tests.el
index 574aa95b5f..6f4d2dc929 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -1,4 +1,4 @@
-;;; compat-tests.el --- Tests for compat.el -*- lexical-binding: t; -*-
+;;; compat-tests.el --- Tests for Compat -*- lexical-binding: t;
no-byte-compile: t; -*-
;; Copyright (C) 2021-2023 Free Software Foundation, Inc.