Skip to content

Commit 3ebd96c

Browse files
committed
builder: decouple wizer and interp
1 parent 132cc7b commit 3ebd96c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

builder/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ func createEmbedObjectFile(data, hexSum, sourceFile, sourceDir, tmpdir string, c
10781078
// needed to convert a program to its final form. Some transformations are not
10791079
// optional and must be run as the compiler expects them to run.
10801080
func optimizeProgram(mod llvm.Module, config *compileopts.Config, globalValues map[string]map[string]string) error {
1081-
if !config.Options.WizerInit {
1081+
if config.Options.InterpTimeout != 0 {
10821082
if err := interp.Run(mod, config.Options.InterpTimeout, config.DumpSSA()); err != nil {
10831083
return err
10841084
}

0 commit comments

Comments
 (0)