Don't fold identical code on #+sb-devel

We lose function identity in a way that makes source locations for
e.g. deftransforms somewhat surprising.
This commit is contained in:
Christophe Rhodes 2025-10-22 21:50:42 +01:00
parent baa9da2fc3
commit 664fb21804

View file

@ -553,7 +553,7 @@ Please check that all strings which were not recognizable to the compiler
(setq sb-c:*compile-to-memory-space* :auto)
(when (find-package "SB-INTERPRETER") (setq sb-ext:*evaluator-mode* :interpret))
#+x86-64 (sb-ext:fold-identical-code :aggressive t :preserve-docstrings t)
#+(and x86-64 (not sb-devel)) (sb-ext:fold-identical-code :aggressive t :preserve-docstrings t)
;; See comments in 'readtable.lisp'
(setf (readtable-base-char-preference *readtable*) :symbols)