about summary refs log tree commit diff
path: root/cmd
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-05-27 16:44:22 +0000
committerGitHub <noreply@github.com>2022-05-27 16:49:02 +0000
commit47c4cd3705bee9d7154c42ce95aef6f8a19e0661 (patch)
treef6b2d502cbc256914a6f7181e2cf623460f9d912 /cmd
parentc2d4bf51de9a2d721168c62b14b89f5281ed366e (diff)
downloadjinx-47c4cd3705bee9d7154c42ce95aef6f8a19e0661.tar.zst
jinx-47c4cd3705bee9d7154c42ce95aef6f8a19e0661.zip
Add debug info to compiled VM code
Diffstat (limited to 'cmd')
-rw-r--r--cmd/vm/main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/vm/main.go b/cmd/vm/main.go
index b844dbc..19ba160 100644
--- a/cmd/vm/main.go
+++ b/cmd/vm/main.go
@@ -66,7 +66,7 @@ func main() {
 			exit("could not read file: %v", err)
 		}
 
-		bc = code.New(content)
+		bc = code.New(content, code.NewDebugInfo(path))
 	}
 
 	if *run {