File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7979 run : |
8080 export MCPP_VENDORED_XLINGS="$XLINGS_BIN"
8181
82+ # Pre-seed LLVM into mcpp sandbox from system xlings.
83+ # Needed because: (1) mcpp 0.0.17 bootstrap binary lacks the
84+ # package_fetcher fallback, (2) xlings sandboxed binary has
85+ # an upstream bug with large package extraction on Windows.
86+ MCPP_XPKGS="$USERPROFILE/.mcpp/registry/data/xpkgs"
87+ for src in "$USERPROFILE/.xlings/data/xpkgs/xim-x-llvm" \
88+ "$USERPROFILE/.xlings/subos/default/data/xpkgs/xim-x-llvm"; do
89+ if [ -d "$src" ]; then
90+ mkdir -p "$MCPP_XPKGS"
91+ cp -r "$src" "$MCPP_XPKGS/xim-x-llvm"
92+ echo "Pre-seeded LLVM from $src"
93+ break
94+ fi
95+ done
96+
8297 "$MCPP" build
8398
8499 MCPP_SELF=$(find target -name "mcpp.exe" -path "*/bin/*" | head -1)
Original file line number Diff line number Diff line change @@ -481,15 +481,17 @@ jobs:
481481 run : |
482482 export MCPP_VENDORED_XLINGS="$XLINGS_BIN"
483483
484- # Pre-seed mcpp sandbox with xlings LLVM
484+ # Pre-seed LLVM into mcpp sandbox from system xlings
485485 MCPP_XPKGS="$USERPROFILE/.mcpp/registry/data/xpkgs"
486- XLINGS_XPKGS="$USERPROFILE/.xlings/data/xpkgs"
487- if [ -d "$XLINGS_XPKGS/xim-x-llvm" ]; then
488- mkdir -p "$MCPP_XPKGS"
489- rm -rf "$MCPP_XPKGS/xim-x-llvm"
490- cp -r "$XLINGS_XPKGS/xim-x-llvm" "$MCPP_XPKGS/xim-x-llvm"
491- echo "Pre-seeded LLVM from global xlings"
492- fi
486+ for src in "$USERPROFILE/.xlings/data/xpkgs/xim-x-llvm" \
487+ "$USERPROFILE/.xlings/subos/default/data/xpkgs/xim-x-llvm"; do
488+ if [ -d "$src" ]; then
489+ mkdir -p "$MCPP_XPKGS"
490+ cp -r "$src" "$MCPP_XPKGS/xim-x-llvm"
491+ echo "Pre-seeded LLVM from $src"
492+ break
493+ fi
494+ done
493495
494496 "$MCPP" build
495497
You can’t perform that action at this time.
0 commit comments