compile can execute command line, show you result, indicate exit code in mode line and more. How do you get exit code of the executed command from Lisp? Documentation of the function is silent about it.
I've tried to read descriptions of various variables that start with
compilation- prefix. No luck. Anyway, exit code is displayed in mode line, so it should be available. Looks like long digging into source code can help here.
Maybe you can save me and future readers time? What is the official (if this word can be used here) way to get exit code?