mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Revert "Pull in latest upstream n2 fixes"
This reverts commit e07e60495b
.
Latest update has an issue on macOS.
This commit is contained in:
parent
e86cebd45e
commit
1100bb6fe8
2 changed files with 9 additions and 6 deletions
|
@ -22,17 +22,12 @@ impl Build {
|
|||
)
|
||||
.unwrap();
|
||||
|
||||
writeln!(&mut buf, "builddir = {}", self.buildroot.as_str()).unwrap();
|
||||
writeln!(
|
||||
&mut buf,
|
||||
"runner = $builddir/rust/release/{}",
|
||||
with_exe("runner")
|
||||
)
|
||||
.unwrap();
|
||||
for (key, value) in &self.variables {
|
||||
writeln!(&mut buf, "{} = {}", key, value).unwrap();
|
||||
}
|
||||
buf.push('\n');
|
||||
|
||||
for (key, value) in &self.pools {
|
||||
writeln!(&mut buf, "pool {}\n depth = {}", key, value).unwrap();
|
||||
|
@ -54,6 +49,14 @@ impl Build {
|
|||
|
||||
buf.push_str(&self.trailing_text);
|
||||
|
||||
buf = buf.replace("$builddir", self.buildroot.as_str());
|
||||
for (key, value) in &self.variables {
|
||||
buf = buf.replace(
|
||||
&format!("${key}"),
|
||||
&value.replace("$builddir", self.buildroot.as_str()),
|
||||
);
|
||||
}
|
||||
|
||||
buf
|
||||
}
|
||||
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
cargo install --git https://github.com/ankitects/n2.git --rev 3eca2545a8f4c8cbdd8ed697936bd2ae929b55dd
|
||||
cargo install --git https://github.com/ankitects/n2.git --rev 56202604d4c541524b82381162eafae4290fdd22
|
||||
|
|
Loading…
Reference in a new issue