Fix problem with CLI paths

This commit is contained in:
Richard Feldman 2020-07-22 19:34:14 -04:00
parent d6c54645ce
commit e1fdabd5ef

View file

@ -102,7 +102,7 @@ pub fn build(matches: &ArgMatches, run_after_build: bool) -> io::Result<()> {
} else {
OptLevel::Normal
};
let path = Path::new(filename);
let path = Path::new(filename).canonicalize().unwrap();
let src_dir = path.parent().unwrap().canonicalize().unwrap();
// Create the runtime