diff options
Diffstat (limited to 'compiler/compiler_test.go')
-rw-r--r-- | compiler/compiler_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/compiler_test.go b/compiler/compiler_test.go index 92ce31b01..5450848c1 100644 --- a/compiler/compiler_test.go +++ b/compiler/compiler_test.go @@ -259,5 +259,7 @@ func testCompilePackage(t *testing.T, options *compileopts.Options, file string) // Compile AST to IR. program := lprogram.LoadSSA() pkg := lprogram.MainPkg() - return CompilePackage(file, pkg, program.Package(pkg.Pkg), machine, compilerConfig, false) + ssaPkg := program.Package(pkg.Pkg) + ssaPkg.Build() + return CompilePackage(file, pkg, ssaPkg, machine, compilerConfig, false) } |