Variable: compilation-safety
compilation-safety is a customizable variable defined in
bytecomp.el.gz.
Value
1
Documentation
Safety level for generated compiled code.
Possible values are:
0 - emitted code can misbehave, even crash Emacs, if declarations of
functions do not correctly describe their actual behavior;
1 - emitted code is to be generated in a safe manner, even if functions
are mis-declared.
Note that "safe" does not mean "correct": if functions are declared incorrectly, the emitted code might also be incorrect. This currently affects only code produced by native-compilation.
This variable was added, or its default value changed, in Emacs 30.1.
Probably introduced at or before Emacs version 30.1.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/bytecomp.el.gz
(defcustom compilation-safety 1
"Safety level for generated compiled code.
Possible values are:
0 - emitted code can misbehave, even crash Emacs, if declarations of
functions do not correctly describe their actual behavior;
1 - emitted code is to be generated in a safe manner, even if functions
are mis-declared.
Note that \"safe\" does not mean \"correct\": if functions are declared
incorrectly, the emitted code might also be incorrect.
This currently affects only code produced by native-compilation."
:type 'integer
:safe #'integerp
:version "30.1")