Skip to content

Commit

Permalink
Fix #15, always run strip
Browse files Browse the repository at this point in the history
  • Loading branch information
roblourens committed Dec 28, 2021
1 parent f764a98 commit 1fc11eb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ mk_tarball() {
local name="ripgrep-${this_tag}-${TARGET}.tar.gz"
# When cross-compiling, use the right `strip` tool on the binary.
local gcc_prefix="$(gcc_prefix)"
if [ -n "${gcc_prefix}" ]; then
# Copy the ripgrep binary and strip it.
"${gcc_prefix}strip" "target/$TARGET/release/rg"
fi

# Copy the ripgrep binary and strip it.
"${gcc_prefix}strip" "target/$TARGET/release/rg"

tar czvf "$OUT_DIR/$name" -C ./target/$TARGET/release rg
echo "##vso[task.setvariable variable=Name]$name"
Expand Down

0 comments on commit 1fc11eb

Please sign in to comment.