File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -262,17 +262,15 @@ jobs:
262262
263263 # Pre-seed the mcpp sandbox with the already-installed LLVM from
264264 # the global xlings. xlings won't re-download if the package dir
265- # exists, but it may create an empty stub. Symlinking avoids
266- # a redundant ~500MB download .
265+ # exists, but it may create an empty stub. Copy instead of junction
266+ # to avoid Windows symlink permission issues on CI runners .
267267 MCPP_XPKGS="$USERPROFILE/.mcpp/registry/data/xpkgs"
268268 XLINGS_XPKGS="$USERPROFILE/.xlings/data/xpkgs"
269269 if [ -d "$XLINGS_XPKGS/xim-x-llvm" ]; then
270270 mkdir -p "$MCPP_XPKGS"
271- # Remove empty stub if mcpp's xlings created one
272271 rm -rf "$MCPP_XPKGS/xim-x-llvm"
273- # Use junction (Windows symlink for directories)
274- cmd.exe //c "mklink /J \"$(cygpath -w "$MCPP_XPKGS/xim-x-llvm")\" \"$(cygpath -w "$XLINGS_XPKGS/xim-x-llvm")\""
275- echo "Linked LLVM xpkg from global xlings"
272+ cp -r "$XLINGS_XPKGS/xim-x-llvm" "$MCPP_XPKGS/xim-x-llvm"
273+ echo "Copied LLVM xpkg from global xlings"
276274 ls "$MCPP_XPKGS/xim-x-llvm/20.1.7/bin/" | head -5
277275 fi
278276
You can’t perform that action at this time.
0 commit comments