Commit 4dad1c7
committed
fix: Windows xpkg fallback — copy from xlings global data when sandbox is empty
xlings on Windows may extract large packages (LLVM ~148MB) into its
global data dir instead of the mcpp sandbox. This happens because
the extraction subprocess doesn't always inherit XLINGS_HOME.
Small packages (ninja 268KB) work correctly in the sandbox.
Workaround: after install, if the expected xpkg path is missing,
check xlings' global data dirs and copy into the sandbox.
This keeps mcpp functionally self-contained while working around
the xlings Windows extraction behavior.1 parent 6e4739f commit 4dad1c7
2 files changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
605 | 605 | | |
606 | 606 | | |
607 | 607 | | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
608 | 639 | | |
609 | 640 | | |
610 | 641 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
667 | | - | |
668 | 666 | | |
669 | 667 | | |
670 | 668 | | |
| |||
0 commit comments