Plumb through Swift `check_compiler_flag` support. Add tests to check that valid flags work and invalid flags don't.