英文:
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\
...
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论