frawk: fix build (#507427)

This commit is contained in:
Peder Bergebakken Sundt
2026-04-10 20:41:21 +00:00
committed by GitHub
2 changed files with 17 additions and 1 deletions
@@ -0,0 +1,13 @@
diff --git a/src/runtime/splitter/batch.rs b/src/runtime/splitter/batch.rs
index 9b1bc21..d7eeaa0 100644
--- a/src/runtime/splitter/batch.rs
+++ b/src/runtime/splitter/batch.rs
@@ -1137,7 +1137,7 @@ mod generic {
macro_rules! iterate {
($buf:expr) => {{
#[cfg(feature = "unstable")]
- std::intrinsics::prefetch_read_data($buf.offset(128), 3);
+ std::intrinsics::prefetch_read_data::<_, 3>($buf.offset(128));
let (s, mask, nl) = f(state, $buf);
state = s;
(mask, nl)
+4 -1
View File
@@ -27,8 +27,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-VraFR3Mp4mPh+39hw88R0q1p5iNkcQzvhRVNPwSxzU0=";
patches = [
# This patch comes from https://github.com/ezrosent/frawk/pull/120, which was squash-merged.
# Remove these two patches after frawk is updated to a version including this fix
# This patch comes from https://github.com/ezrosent/frawk/pull/120
./fix-some-compiler-warnings-errors.patch
# From https://github.com/ezrosent/frawk/commit/35a79dc04933f38f98a7c8f6fc89ca09724702ab
./fix-prefetch-read-data.patch
];
buildInputs = [