Unverified Commit 12f0ab69 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

python3Packages.pytorch-tokenizers: fix build by patching sentencepiece src (#477087)

parents 2f52b154 164d2509
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
Submodule third-party/sentencepiece contains modified content
diff --git a/third-party/sentencepiece/src/sentencepiece_processor.h b/third-party/sentencepiece/src/sentencepiece_processor.h
index dd3f092..553fbff 100644
--- a/third-party/sentencepiece/src/sentencepiece_processor.h
+++ b/third-party/sentencepiece/src/sentencepiece_processor.h
@@ -16,6 +16,7 @@
 #define SENTENCEPIECE_PROCESSOR_H_
 
 #include <cstring>
+#include <cstdint>
 #include <memory>
 #include <string>
 #include <string_view>
+2 −0
Original line number Diff line number Diff line
@@ -45,6 +45,8 @@ buildPythonPackage rec {
    (replaceVars ./dont-fetch-pybind11.patch {
      pybind11 = pybind11-src;
    })
    # error: ‘uint32_t’ does not name a type
    ./add-missing-cstdint-sentencepiece.patch
  ];

  postPatch = ''