Commit 633e56d
authored
Fix rust_bindgen compile flag filtering (#3363)
All flags were treated as accepting a parameter, causing any argument
following a parameterless flag (e.g. `-no-standard-includes`) to be
passed through. This causes bindgen failures if the next argument isn't
supported by clang.
`-nostd*` flags has also been expanded using
https://clang.llvm.org/docs/ClangCommandLineReference.html to make it
clearer that these flags are parameterless. Since these flags resulted
in a prefix match, not a full match, they wouldn't set `open_arg = True`
and therefore wouldn't cause issues, but this behavior is unnecessarily
subtle now that there are two lists.
Fixes #33591 parent 2f81c8d commit 633e56d
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
| 275 | + | |
275 | 276 | | |
276 | 277 | | |
277 | 278 | | |
| |||
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
286 | 291 | | |
287 | | - | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
288 | 297 | | |
289 | 298 | | |
290 | 299 | | |
| |||
298 | 307 | | |
299 | 308 | | |
300 | 309 | | |
301 | | - | |
| 310 | + | |
302 | 311 | | |
303 | 312 | | |
304 | 313 | | |
305 | 314 | | |
306 | | - | |
| 315 | + | |
307 | 316 | | |
308 | 317 | | |
309 | 318 | | |
| |||
0 commit comments