mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-02 13:41:10 +00:00
fix: windows specific bug
This commit is contained in:
parent
3eb2d439ca
commit
ebfc314e0b
3 changed files with 31 additions and 19 deletions
|
@ -226,20 +226,6 @@ impl Compiler {
|
|||
Ok(CompleteArtifact::new(last, arti.warns))
|
||||
}
|
||||
|
||||
pub fn exec_compile(
|
||||
&mut self,
|
||||
src: String,
|
||||
mode: &str,
|
||||
) -> Result<CompleteArtifact<ExitStatus>, ErrorArtifact> {
|
||||
let arti = self.compile(src, mode)?;
|
||||
let stat = arti
|
||||
.object
|
||||
.exec(self.cfg.py_magic_num, self.cfg.output.clone())
|
||||
.expect("failed to dump a .pyc file (maybe permission denied)");
|
||||
let stat = ExitStatus::new(stat.code().unwrap_or(0), arti.warns.len(), 0);
|
||||
Ok(CompleteArtifact::new(stat, arti.warns))
|
||||
}
|
||||
|
||||
pub fn compile(
|
||||
&mut self,
|
||||
src: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue