byte-compile-dest-file-function is a variable defined in `bytecomp.el'.
Its value is

  • This variable may be risky if used as a file-local variable.

Function for the function `byte-compile-dest-file' to call.
It should take one argument, the name of an Emacs Lisp source
file name, and return the name of the compiled file.

You can customize this variable.

This variable was introduced, or its default value was changed, in version 23.2 of Emacs.