[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master ac649dc: Use --module-assertions if modules are ava
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] master ac649dc: Use --module-assertions if modules are available |
Date: |
Wed, 14 Jun 2017 06:24:28 -0400 (EDT) |
branch: master
commit ac649dc4b48be3fab8c904012aca4c07b0019041
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
Use --module-assertions if modules are available
Using --module-assertions helps us find bugs in the test module. But
we can use it only if Emacs was compiled with module support.
* test/Makefile.in (MODULES_EMACSOPT): New variable.
(emacs): Use it.
---
test/Makefile.in | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/test/Makefile.in b/test/Makefile.in
index 9c1f2d2..67bb7ac 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -97,11 +97,17 @@ TEST_LOCALE = C
# this by default since it gives nicer stacktraces.
TEST_LOAD_EL ?= yes
+ifeq (@HAVE_MODULES@, yes)
+MODULES_EMACSOPT := --module-assertions
+else
+MODULES_EMACSOPT :=
+endif
+
# The actual Emacs command run in the targets below.
# Prevent any setting of EMACSLOADPATH in user environment causing problems.
emacs = EMACSLOADPATH= LC_ALL=$(TEST_LOCALE) \
EMACS_TEST_DIRECTORY=$(abspath $(srcdir)) \
- $(GDB) "$(EMACS)" $(EMACSOPT)
+ $(GDB) "$(EMACS)" $(MODULES_EMACSOPT) $(EMACSOPT)
test_module_dir := $(srcdir)/data/emacs-module
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master ac649dc: Use --module-assertions if modules are available,
Philipp Stephani <=