Commit 5e5efb0
MSVC: Pass through further /external flags (mozilla#1141)
Adding /experimental:external or /experimental:W... causes caching to fail:
[2022-03-14T09:34:13Z DEBUG sccache::server] check_compiler: Supported compiler
[2022-03-14T09:34:13Z DEBUG sccache::server] parse_arguments: CannotCache(multiple input files): ["/nologo", "/TP", "-Dlibrary_EXPORTS", ... "/experimental:external", "/external:I", "C:\\src", "/external:W0", "/O2", "/Ob2", "/DNDEBUG", "-MD", "/showIncludes", "/Fosrc\\library\\CMakeFiles\\library.dir\\speak.cpp.obj", "/Fdsrc\\library\\CMakeFiles\\library.dir\\", "/FS", "-c", "C:\\src\\library\\speak.cpp"]
This change adds the additional flags to the msvc_args macro and simply
passes them on to the compiler.
Tests have been added that use forward slashes instead of dashes1 parent ba5bef4 commit 5e5efb0
1 file changed
+43
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
388 | 388 | | |
389 | 389 | | |
390 | 390 | | |
| 391 | + | |
391 | 392 | | |
392 | 393 | | |
393 | 394 | | |
394 | 395 | | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
395 | 401 | | |
396 | 402 | | |
397 | 403 | | |
| |||
1238 | 1244 | | |
1239 | 1245 | | |
1240 | 1246 | | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
| 1255 | + | |
| 1256 | + | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
| 1265 | + | |
| 1266 | + | |
| 1267 | + | |
| 1268 | + | |
| 1269 | + | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1241 | 1284 | | |
1242 | 1285 | | |
1243 | 1286 | | |
| |||
0 commit comments