From c3c4a33b4275b6fa28ee79fe6caf2aaaac73c719 Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Fri, 9 Nov 2018 16:31:21 +0100 Subject: [PATCH] main: enable -initinterp by default It can still be disabled using -initinterp=false. --- main.go | 2 +- main_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 7c2b410f..e4b0e965 100644 --- a/main.go +++ b/main.go @@ -438,7 +438,7 @@ func main() { printSize := flag.String("size", "", "print sizes (none, short, full)") nodebug := flag.Bool("no-debug", false, "disable DWARF debug symbol generation") ocdOutput := flag.Bool("ocd-output", false, "print OCD daemon output during debug") - initInterp := flag.Bool("initinterp", false, "enable experimental partial evaluator of generated IR") + initInterp := flag.Bool("initinterp", true, "enable/disable partial evaluator of generated IR") port := flag.String("port", "/dev/ttyACM0", "flash port") if len(os.Args) < 2 { diff --git a/main_test.go b/main_test.go index c02881c6..5031c6aa 100644 --- a/main_test.go +++ b/main_test.go @@ -65,7 +65,7 @@ func runTest(path, tmpdir string, target string, t *testing.T) { dumpSSA: false, debug: false, printSizes: "", - initInterp: false, + initInterp: true, } binary := filepath.Join(tmpdir, "test") err = Build(path, binary, target, config)