Commit 4659b62
[clang][Modules] Respect -fno-cxx-modules as a driver flag (llvm#150349)
The mentioned flag is already both a cc1 & driver flag; however, whether
it is respected was tied to either:
1. Whether it was passed as a cc1 option (`Xclang`)
2. or `-fmodules` accompanying it
This poses a consistency problem where `std=c++20` enables the modules
feature, independent of other module settings.
This patch resolves this issue by checking for the presence
unconditionally & passing it down to cc1 when applicable.1 parent 935e14e commit 4659b62
2 files changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3881 | 3881 | | |
3882 | 3882 | | |
3883 | 3883 | | |
3884 | | - | |
3885 | | - | |
| 3884 | + | |
| 3885 | + | |
3886 | 3886 | | |
3887 | 3887 | | |
3888 | 3888 | | |
3889 | 3889 | | |
3890 | 3890 | | |
| 3891 | + | |
| 3892 | + | |
3891 | 3893 | | |
3892 | 3894 | | |
3893 | | - | |
3894 | | - | |
3895 | 3895 | | |
3896 | 3896 | | |
3897 | 3897 | | |
| |||
3900 | 3900 | | |
3901 | 3901 | | |
3902 | 3902 | | |
| 3903 | + | |
| 3904 | + | |
| 3905 | + | |
3903 | 3906 | | |
3904 | 3907 | | |
3905 | 3908 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
| |||
0 commit comments