Added a cargo-make config for easier testing
parent
f88072f7ac
commit
fdefd706a9
|
@ -0,0 +1,34 @@
|
|||
[tasks.compile-bf]
|
||||
clear = true
|
||||
private = true
|
||||
command = "cargo"
|
||||
args = ["run", "--release", "--", "${@}"]
|
||||
|
||||
[tasks.move]
|
||||
clear = true
|
||||
private = true
|
||||
command = "mv"
|
||||
args = ["./demo.asm", "./asm/demo.asm"]
|
||||
dependencies = ["compile-bf"]
|
||||
|
||||
[tasks.assemble]
|
||||
private = true
|
||||
command = "nasm"
|
||||
args = ["-felf64", "./asm/demo.asm"]
|
||||
dependencies = ["move"]
|
||||
|
||||
[tasks.link]
|
||||
clear = true
|
||||
private = true
|
||||
command = "ld.lld"
|
||||
args = ["./asm/demo.o", "-o", "./asm/demo"]
|
||||
dependencies = ["assemble"]
|
||||
|
||||
[tasks.compile]
|
||||
clear = true
|
||||
dependencies = ["link"]
|
||||
|
||||
[tasks.test]
|
||||
clear = true
|
||||
command = "./asm/demo"
|
||||
dependencies = ["link"]
|
Loading…
Reference in New Issue