a twag here, but back in the day when I used to write a lot of code, you could put a "macro" with an if statement into the code to say, hey if I am building on this, then execute this piece to be compiled and if I am executing on this, then do this piece of code.
Therefore I would guess, that functionality still exists and could be placed in the portion that checks for the option key or the alt key depending on platform it's compiling on.
Like I said twag.
ALan