mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
test: minimize impact of native compilation.
Native compilation is kindof useless in the test suite because we throw away the cache after every subtest. The test suite could in principle share an eln cache within a given test file; for now try to minimize the amount of native-compilation. There is an intermittent bug where emacs loses track of its default-directory; I suspect (but have no proof) that bug is related to native compilation and/or race conditions. This patch seems to prevent that bug (or at least reduce its frequency).
This commit is contained in:
parent
8c8fda965f
commit
115d4d69eb
1 changed files with 9 additions and 0 deletions
|
@ -22,6 +22,15 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
;; minimize impact of native compilation on the test suite.
|
||||||
|
;; These are the Emacs 29.1 version of the variables.
|
||||||
|
;; Leave trampolines enabled per Emacs upstream recommendations.
|
||||||
|
;; It is important to set these variables before loading any
|
||||||
|
;; .elc files.
|
||||||
|
(setq native-comp-jit-compilation nil)
|
||||||
|
(setq native-comp-speed -1)
|
||||||
|
(setq native-comp-async-jobs-number 1)
|
||||||
|
|
||||||
(require 'cl-lib)
|
(require 'cl-lib)
|
||||||
|
|
||||||
;; Ensure that the dynamic variables that are defined by this library
|
;; Ensure that the dynamic variables that are defined by this library
|
||||||
|
|
Loading…
Reference in a new issue