Skip to content

Commit

Permalink
Strip debug info from Windows builds (#41838)
Browse files Browse the repository at this point in the history
Updates #34812
  • Loading branch information
zmb3 committed May 21, 2024
1 parent 58ca3ff commit 7ced8a7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build.assets/windows/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,10 @@ function Build-Tsh {
$CommandDuration = Measure-Block {
Write-Host "::group::Building tsh..."
$UnsignedBinaryPath = "$BuildDirectory\unsigned-$BinaryName"
go build -tags piv -o "$UnsignedBinaryPath" "$TeleportSourceDirectory\tool\tsh"
go build -tags piv -trimpath -ldflags "-s -w" -o "$UnsignedBinaryPath" "$TeleportSourceDirectory\tool\tsh"
if ($LastExitCode -ne 0) {
exit $LastExitCode
}
Write-Host "::endgroup::"

Write-Host "::group::Signing tsh..."
Expand Down

0 comments on commit 7ced8a7

Please sign in to comment.