Skip to content

Commit

Permalink
Don't use upx with Windows binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
tamalsaha committed Feb 19, 2018
1 parent f1197df commit dcf8ff3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbuild.py
Expand Up @@ -210,7 +210,7 @@ def go_build(name, goos, goarch, main, compress=False, upx=False):
)
die(call(cmd, cwd=REPO_ROOT))

if upx and (goarch in ['amd64', '386']):
if upx and (goos in ['linux', 'darwin']) and (goarch in ['amd64', '386']):
cmd = "upx --brute {name}-{goos}-{goarch}{ext}".format(
name=name,
goos=goos,
Expand Down

0 comments on commit dcf8ff3

Please sign in to comment.