Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of spurious diagnostics when compiling system modules with Xc…
…ode 12.5: ``` <unknown>:0: error: invalid argument '-fsystem-module' only allowed with '-emit-module' ``` This happens because ClangImporter changes the invocation's action to `GenerateModule` *after* the invocation is created by parsing the `-Xcc` flags from the Swift command line, and Clang's argument parser emits a diagnostic if `-fsystem-module` is used with any other action. PiperOrigin-RevId: 375942286 (cherry picked from commit c497e6e)
- Loading branch information