1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 15:36:41 -05:00

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

This commit is contained in:
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

View File

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