浏览代码

fix rust building

write the binaries where they belong and remove then after running.
Lucas Stadler 11 年之前
父节点
当前提交
ddb13262c0
共有 1 个文件被更改,包括 3 次插入1 次删除
  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