From ecb474231635135b6683595aaa23017d823fd68c Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Sat, 17 Nov 2018 14:48:48 +0100 Subject: [PATCH] main: do not run legacy init interpreter with run subcommand Do not run the new init interpreter either. Just run the code. --- main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index eba4720b..bec5d6c9 100644 --- a/main.go +++ b/main.go @@ -342,8 +342,9 @@ func FlashGDB(pkgName, target, port string, ocdOutput bool, config *BuildConfig) // Run the specified package directly (using JIT or interpretation). func Run(pkgName string) error { config := compiler.Config{ - RootDir: sourceDir(), - GOPATH: getGopath(), + RootDir: sourceDir(), + GOPATH: getGopath(), + InitInterp: true, } c, err := compiler.NewCompiler(pkgName, config) if err != nil {