To keep the story short (if necessary, I can explain the use-case), if there any way to abort compilation with a message. I would use "static if" or "version" to check a situation, and "pragma msg" to show a message. But I couldn't have found any "proper" way to abort compilation.