mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
hosted mode breaks under windows due to missing .exe on some configs
I don't know why it doesn't break under a default config, but if xous-core is cloned to a directory that doesn't match the repo name this breaks. This patch tries to fix it for that case.
This commit is contained in:
parent
8af8926ad1
commit
867b0efdf2
1 changed files with 13 additions and 7 deletions
|
|
@ -981,13 +981,19 @@ fn run(
|
||||||
|
|
||||||
let mut paths = vec![];
|
let mut paths = vec![];
|
||||||
for i in init {
|
for i in init {
|
||||||
let tmp: PathBuf = Path::new(&format!(
|
let tmp: PathBuf = if cfg!(windows) {
|
||||||
|
Path::new(&format!(
|
||||||
|
"..{}target{}{}{}{}.exe",
|
||||||
|
MAIN_SEPARATOR, MAIN_SEPARATOR, stream, MAIN_SEPARATOR, i
|
||||||
|
))
|
||||||
|
.to_owned()
|
||||||
|
} else {
|
||||||
|
Path::new(&format!(
|
||||||
"..{}target{}{}{}{}",
|
"..{}target{}{}{}{}",
|
||||||
MAIN_SEPARATOR, MAIN_SEPARATOR, stream, MAIN_SEPARATOR, i
|
MAIN_SEPARATOR, MAIN_SEPARATOR, stream, MAIN_SEPARATOR, i
|
||||||
))
|
))
|
||||||
.to_owned();
|
.to_owned()
|
||||||
// .canonicalize()
|
};
|
||||||
// .or(Err(BuildError::PathConversionError))?;
|
|
||||||
paths.push(tmp);
|
paths.push(tmp);
|
||||||
}
|
}
|
||||||
for t in &paths {
|
for t in &paths {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue