report debug mode in compile target, not build target