[compiler-rt] Error only if sanitizer builds are enabled (#187944)

This fix is to error out only if sanitizer builds are enabled as opposed
to forcing flang to use an option or install the development package.

NOKEYCHECK=True
GitOrigin-RevId: 6a8a1008b56c8a3532b19551292e71216f0ea03e
1 file changed