使用额外的包编译Go的最新版本

huangapple go评论69阅读模式
英文:

Compile Go tip with extra packages

问题

我想尝试一下exp/regexp包。目前Go的最新版本的./all.bash命令只编译包括exp/regexp/syntax。我一直在查找Makefile文件,但是我看不懂它是如何选择要包含的包的。我应该如何修改才能使用exp/regexp构建Go?

英文:

I'd like to try out the exp/regexp package. Currently Go tip's ./all.bash command compiles including only exp/regexp/syntax. I've been looking around the makefiles and I see it builds a Make.deps but couldn't figure out how it selects the packages that are included. What should I change to build Go with exp/regexp?

答案1

得分: 3

把包目录添加到 src/pkg/Makefile 中:

DIRS=\
    archive/tar\
    archive/zip\
    asn1\
    ...
    exp/regexp\
    ...
英文:

Duh, it was right in front of my eyes! Add the package dir to src/pkg/Makefile:

DIRS=\
    archive/tar\
    archive/zip\
    asn1\
    ...
    exp/regexp\
    ...

huangapple
  • 本文由 发表于 2011年8月15日 23:10:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/7066648.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定