faiss: fix build with swig 4.2

This commit is contained in:
Alexis Hildebrandt
2024-07-26 23:25:14 +02:00
parent 52044259ac
commit 61443e9d90
@@ -63,6 +63,15 @@ stdenv.mkDerivation {
})
];
postPatch = ''
# Remove the following substituteInPlace when updating
# to a release that contains change from PR
# https://github.com/facebookresearch/faiss/issues/3239
# that fixes building faiss with swig 4.2.x
substituteInPlace faiss/python/swigfaiss.swig \
--replace-fail '#ifdef SWIGWORDSIZE64' '#if (__SIZEOF_LONG__ == 8)'
'';
buildInputs = [
blas
swig