This repository was archived by the owner on Jan 25, 2024. It is now read-only.
Commit c497e6e
Get rid of spurious diagnostics when compiling system modules with Xcode 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: 3759422861 parent 214f725 commit c497e6e
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
472 | 472 | | |
473 | 473 | | |
474 | 474 | | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
475 | 488 | | |
476 | 489 | | |
477 | 490 | | |
| |||
0 commit comments