Skip to content

Commit

Permalink
Attempt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
outkine committed Mar 25, 2024
1 parent 1d0a6cc commit 3ca4c65
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ fn main() {
fs::write(&dst, artifact.serialize().unwrap()).unwrap();
}

(dst, cfg!(feature = "build-llvm"))
(dst, !cfg!(debug_assertions))
}
};

Expand All @@ -115,7 +115,7 @@ fn main() {
if include_bin {
""
} else {
r#".expect("should compile with --features=build-llvm when distributing")"#
r#".expect("Error loading runtime file, if this is a production build then include_bin should have been set to true")"#
}
)
.unwrap();
Expand Down
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ impl Runner {
let sourcedir = make_sourcedir(source)?;
let store = &*STORE;
let (module, version) = lang.get_wasm(store)?;
println!("IT worked");
Runner::new_wasm(store, module, version, &[], sourcedir).await
}
RobotId::Command { command, args } => {
Expand Down Expand Up @@ -537,7 +538,7 @@ fn directories() -> anyhow::Result<&'static directories::ProjectDirs> {
})
}

#[derive(Clone, Copy, serde::Deserialize, strum::EnumString, strum::AsRefStr)]
#[derive(Clone, Copy, Debug, serde::Deserialize, strum::EnumString, strum::AsRefStr)]
pub enum Lang {
Python,
Javascript,
Expand Down Expand Up @@ -605,6 +606,7 @@ impl Lang {
}};
}
let lang = self;
println!("ATTEMPTING");
Ok(include!(concat!(env!("OUT_DIR"), "/lang_runners.rs")))
}
}
Expand Down

0 comments on commit 3ca4c65

Please sign in to comment.