From f092e9addcc090c2b660ed123fb45e470baeae75 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Wed, 8 Jul 2015 10:01:10 +0200 Subject: [PATCH] build: when compiling, don't rely on old elc files Otherwise, compilation order is important and since we don't respect it, compilation may break when outdated elc files are around. The workaround implemented here only works in Emacs 24.4 or later. Close #755 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 08c6cbbf9..93327aa93 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,8 @@ EMACS := $(shell echo "$${EMACS:-emacs}") EFLAGS = --eval "(add-to-list 'load-path (expand-file-name \"tests/compat\") 'append)" \ --eval "(when (< emacs-major-version 24) \ (setq byte-compile-warnings '(not cl-functions)))" \ - --eval '(setq byte-compile-error-on-warn t)' + --eval '(setq byte-compile-error-on-warn t)' \ + --eval '(when (not (version< emacs-version "24.4")) (setq load-prefer-newer t))' BATCH = $(EMACS) $(EFLAGS) --batch -Q -L .