Preprocessor macro for detecting export compiled binary

I think the only way you could accomplish this is by modifying platform.txt to somehow do it via the recipe.hooks.savehex.presavehex hook: