Ver Código Fonte

fix rust building

write the binaries where they belong and remove then after running.
Lucas Stadler 11 anos atrás
pai
commit
ddb13262c0
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      go/linguaevalia/bin/run-rust

+ 3 - 1
go/linguaevalia/bin/run-rust

@ -1,3 +1,5 @@
1 1
#!/bin/sh
2 2
3
rustc $1 && ./`basename $1 .rs`
3
result=/tmp/`basename $1 .rs`
4
rustc $1 -o $result && $result
5
rm -f $result