mirror of https://github.com/v2ray/v2ray-core
compiler use gogcc, remove gcflags and asmflags (#269)
parent
bcc7b78ff7
commit
359f84407a
|
@ -13,13 +13,10 @@ def _go_command(ctx):
|
||||||
options = [
|
options = [
|
||||||
"go",
|
"go",
|
||||||
"build",
|
"build",
|
||||||
"-o", output_file.path,
|
"-trimpath",
|
||||||
"-compiler", "gc",
|
"-o", output_file.path,
|
||||||
"-gcflags", '"all=-trimpath=${GOPATH}/src"',
|
|
||||||
"-asmflags", '"all=-trimpath=${GOPATH}/src"',
|
|
||||||
"-ldflags", "'%s'" % ld_flags,
|
"-ldflags", "'%s'" % ld_flags,
|
||||||
"-tags", "'%s'" % ctx.attr.gotags,
|
"-tags", "'%s'" % ctx.attr.gotags,
|
||||||
"-trimpath",
|
|
||||||
pkg,
|
pkg,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue