Implement semantic-only flag for the compiler.