예제 #1
0
파일: builder.go 프로젝트: NickDaison/e8vm
// NewBuilder creates a new builder with a particular home directory
func NewBuilder(home Home) *Builder {
	return &Builder{
		home:       home,
		pkgs:       make(map[string]*pkg),
		deps:       make(map[string][]string),
		linkPkgs:   make(map[string]*link8.Pkg),
		debugFuncs: debug8.NewFuncs(),
		InitPC:     arch8.InitPC,
	}
}
예제 #2
0
파일: builder.go 프로젝트: 272489711/e8vm
// NewBuilder creates a new builder with a particular home directory
func NewBuilder(input Input, output Output) *Builder {
	return &Builder{
		input:      input,
		output:     output,
		pkgs:       make(map[string]*pkg),
		deps:       make(map[string][]string),
		linkPkgs:   make(map[string]*link8.Pkg),
		debugFuncs: debug8.NewFuncs(),
		Options:    new(Options),
	}
}