compiler use gogcc, remove gcflags and asmflags (#269)

pull/2757/head
Kslr 2020-10-07 10:02:40 +08:00 committed by GitHub
parent bcc7b78ff7
commit 359f84407a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -13,13 +13,10 @@ def _go_command(ctx):
options = [
"go",
"build",
"-o", output_file.path,
"-compiler", "gc",
"-gcflags", '"all=-trimpath=${GOPATH}/src"',
"-asmflags", '"all=-trimpath=${GOPATH}/src"',
"-trimpath",
"-o", output_file.path,
"-ldflags", "'%s'" % ld_flags,
"-tags", "'%s'" % ctx.attr.gotags,
"-trimpath",
pkg,
]