compilation-process-setup-function is a variable defined in `compile.el'.
Its value is

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

Function to call to customize the compilation process.
This function is called immediately before the compilation process is
started. It can be used to set any variables or functions that are used
while processing the output of the compilation process.