Commit e7a0db3
committed
feat(flags): adopt mcpp.toolchain.provider in compute_flags()
Import mcpp.toolchain.provider and build a ProviderCapabilities value at
the start of compute_flags(). Use caps.stdlib_id to drive the -fmodules
flag decision (GCC/libstdc++ only) as a proof-of-adoption, replacing the
ad-hoc isClang ternary with a semantically equivalent caps-based check.
Future flag branching should use caps.* rather than adding new is_clang()
or is_musl_target() call sites.1 parent 0b379b6 commit e7a0db3
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
125 | 132 | | |
126 | 133 | | |
127 | 134 | | |
128 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
129 | 139 | | |
130 | 140 | | |
131 | 141 | | |
| |||
0 commit comments