Unverified Commit ba7cf6a4 authored by toonn's avatar toonn Committed by GitHub
Browse files

Merge pull request #243683 from reckenrode/nodejs-fix-ar

nodejs: use a response file with llvm-ar
parents 664361e4 87478fdf
Loading
Loading
Loading
Loading
+8 −3
Original line number Diff line number Diff line
@@ -160,9 +160,14 @@ let
      ${if stdenv.buildPlatform.isGnu then ''
        ar -cqs $libv8/lib/libv8.a @files
      '' else ''
        # llvm-ar supports response files, so take advantage of it if it’s available.
        if [ "$(basename $(readlink -f $(command -v ar)))" = "llvm-ar" ]; then
          ar -cqs $libv8/lib/libv8.a @files
        else
          cat files | while read -r file; do
            ar -cqS $libv8/lib/libv8.a $file
          done
        fi
      ''}
      popd