Skip to content

Commit

Permalink
dont follow symlinks for libclang, copy the whole file
Browse files Browse the repository at this point in the history
  • Loading branch information
ParkMyCar committed Jan 11, 2025
1 parent 09f4bb6 commit 7f1dd42
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions clang/clang_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ mv "linux_$clang_arch.tar.zst" "artifacts/linux_$clang_arch.tar.zst"
mkdir package_libclang

# Linux nests the libc++ one directory deep, so let's move that up.
eval cp -rP llvm-project/build/lib/$clang_target/libc++* llvm-project/build/lib/.
eval cp -r llvm-project/build/lib/$clang_target/libc++* llvm-project/build/lib/.

for dir in bin lib; do
mkdir package_libclang/$dir
Expand All @@ -99,7 +99,8 @@ for dir in bin lib; do
fi
# Strip the 'build:' prefix if it exists.
val=${val#build:}
eval cp -rP llvm-project/$build_dir/$dir/$val package_libclang/$dir/
# Do not follow symlinks.
eval cp -r llvm-project/$build_dir/$dir/$val package_libclang/$dir/
done
done

Expand Down

0 comments on commit 7f1dd42

Please sign in to comment.