Hi ALL,
The Move compiler can not run on other computer because of the stdlib
root has been set when rust gens the compiler.
I make a PR to set stdlib root, then compiler can run on the other computer with stdlib folder.
test
cargo build --bin compiler
- run compiler on other computer
$ ./compiler ~/hello.mvir
thread 'main' panicked at 'Unable to read file: "/Volumes/backup/repos/libra/language/stdlib/modules/hash.mvir"', language/compiler/src/util.rs:18:29
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
- with this PR
$ ./compiler --stdlib-root ~/repos/bcx/libra/language/stdlib/ ~/hello.mvir
Thanks,