mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
fix: thread joining bug
This commit is contained in:
parent
c3dc061f3d
commit
51a66108a1
3 changed files with 62 additions and 28 deletions
|
@ -1976,7 +1976,7 @@ impl Context {
|
|||
.map_err(|_| self.import_err(line!(), __name__, loc))?;
|
||||
let name = __name__.clone();
|
||||
let _path = path.clone();
|
||||
let shared = self.shared.as_ref().unwrap().clone();
|
||||
let shared = self.shared.as_ref().unwrap().inherit(path.clone());
|
||||
let run = move || {
|
||||
let mut builder = HIRBuilder::new_with_cache(cfg, name, shared.clone());
|
||||
match builder.build(src, "exec") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue