compiler: move Config struct to compileopts

This commit is contained in:
Ayke van Laethem
2019-10-31 15:54:28 +01:00
committed by Ron Evans
parent e7cf75030c
commit ef600965aa
3 changed files with 36 additions and 32 deletions
+2 -2
View File
@@ -63,7 +63,7 @@ type BuildConfig struct {
tags string
wasmAbi string
heapSize int64
testConfig compiler.TestConfig
testConfig compileopts.TestConfig
}
// Helper function for Compiler object.
@@ -108,7 +108,7 @@ func Compile(pkgName, outpath string, spec *compileopts.TargetSpec, config *Buil
if config.scheduler != "" {
scheduler = config.scheduler
}
compilerConfig := compiler.Config{
compilerConfig := &compileopts.Config{
Triple: spec.Triple,
CPU: spec.CPU,
Features: spec.Features,