소스 검색

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

Kslr 5 년 전
부모
커밋
359f84407a
1개의 변경된 파일2개의 추가작업 그리고 5개의 파일을 삭제
  1. 2 5
      infra/bazel/build.bzl

+ 2 - 5
infra/bazel/build.bzl

@@ -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,
   ]