Actually try if CC accepts the flag instead of guessing from the compiler name.