Commit c9f007c
committed
nvcc: accept the --diag-error/--diag-suppress/--diag-warn family
nvcc's diagnostic-control options take an error-number list and accept the
SEPARATED form (--diag-suppress 1394,1388). None of the family was in the
argument table, so the separated value parsed as a bare token, was taken
for a second input file, and the whole compile was rejected as
CannotCache(multiple input files). Measured on OpenCV 5.0.0 with CUDA:
every one of its 155 .cu compiles carries exactly this flag pair (via
-Xcudafe --display_error_number --diag-suppress 1394,1388) and was
forwarded uncached; with the entries added the same command is cached.
Adds double- and single-dash forms, CanBeSeparated('='), PassThrough, plus
a regression test for the separated shape.1 parent ffac4a5 commit c9f007c
1 file changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1419 | 1419 | | |
1420 | 1420 | | |
1421 | 1421 | | |
| 1422 | + | |
| 1423 | + | |
| 1424 | + | |
1422 | 1425 | | |
1423 | 1426 | | |
1424 | 1427 | | |
| |||
1461 | 1464 | | |
1462 | 1465 | | |
1463 | 1466 | | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
1464 | 1470 | | |
1465 | 1471 | | |
1466 | 1472 | | |
| |||
2155 | 2161 | | |
2156 | 2162 | | |
2157 | 2163 | | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
| 2190 | + | |
| 2191 | + | |
| 2192 | + | |
| 2193 | + | |
| 2194 | + | |
| 2195 | + | |
2158 | 2196 | | |
2159 | 2197 | | |
2160 | 2198 | | |
| |||
0 commit comments