Commit 623613e
committed
Fix comma-separated llvm-args parsing in CodegenArgs::from_session
Previously, when multiple llvm-args were passed as comma-separated values
(e.g., `-C llvm-args=--disassemble-fn=foo,--allow-fragment-no-output`),
they were treated as a single argument instead of being properly split.
This change modifies CodegenArgs::from_session to:
- Split comma-separated llvm-args into individual arguments
- Preserve existing functionality for single arguments
- Enable proper parsing of multiple compiler flags
Fixes parameter processing for compound llvm-args usage in rust-gpu.1 parent 9f03575 commit 623613e
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | | - | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
341 | 348 | | |
342 | 349 | | |
343 | 350 | | |
| |||
420 | 427 | | |
421 | 428 | | |
422 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
423 | 435 | | |
424 | 436 | | |
425 | 437 | | |
| |||
628 | 640 | | |
629 | 641 | | |
630 | 642 | | |
| 643 | + | |
631 | 644 | | |
632 | 645 | | |
633 | 646 | | |
| |||
0 commit comments