News for hackers. Stuff that matters.
Re:Bringing GNU Emacs to Native Code (2020) by da39a3ee on Sunday May 02, 2021 @08:50AM (#27014842)
Given an installed emacs, what's the best way to check whether it was built with this feature and that the feature is active?
Re:Bringing GNU Emacs to Native Code (2020) by rgrau on Sunday May 02, 2021 @10:13AM (#27015477)
Several ways (overkill answer, but leaving all options I know because why not):

You can try evaluating this in the scratch buffer

    (if (member 'nativecomp features)
        (message "yay")
      (message "nay"))
Or check if a non-interactive function called `native-compile` exists.

Or open help for an elisp function (next-line, for example):

    c-h f next-line RET
Gives me:

    next-line is an interactive native compiled Lisp function in ‘simple.el’.
Or, m-x disassemble next-line RET