瀏覽代碼

codecgen: remove notfastpath from runtime tags for codecgen

Adding notfastpath to the runtime tags will cause the fastpath
methods to not be found. codecgen expects them to be available.

Fix by removing notfastpath from the tags.

Fixes #111
Ugorji Nwoke 10 年之前
父節點
當前提交
9d93fad923
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      codec/codecgen/gen.go

+ 1 - 1
codec/codecgen/gen.go

@@ -220,7 +220,7 @@ func Generate(outfile, buildTag, codecPkgPath string, uid int64, useUnsafe bool,
 	os.Remove(outfile)
 	os.Remove(outfile)
 
 
 	// execute go run frun
 	// execute go run frun
-	cmd := exec.Command("go", "run", "-tags=notfastpath "+goRunTag, frunMainName) //, frunPkg.Name())
+	cmd := exec.Command("go", "run", "-tags="+goRunTag, frunMainName) //, frunPkg.Name())
 	var buf bytes.Buffer
 	var buf bytes.Buffer
 	cmd.Stdout = &buf
 	cmd.Stdout = &buf
 	cmd.Stderr = &buf
 	cmd.Stderr = &buf