Skip to content

Commit

Permalink
fix: add #include<fmt-ranges.h> to thrift util.h (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx authored Oct 29, 2024
1 parent ae2ceec commit be2f2b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ci-scripts/patch-fbthrift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,16 @@ if [[ "$OSTYPE" == "msys" ]]; then
re="if (detail::platform_is_windows()) {"
sbst="if (false) { \/* tebako patched *\/"
do_patch "$1/thrift/compiler/source_location.cc" "$re" "$sbst"

re="#include <fmt/fmt-format.h>"
# shellcheck disable=SC2251
! IFS= read -r -d '' sbst << EOM
#include <fmt/fmt-format.h>
\/* -- Start of tebako patch -- *\/
#include <fmt/fmt-ranges.h>
\/* -- End of tebako patch -- *\/
EOM
do_patch_multiline "$1/thrift/compiler/lib/cpp2/util.h" "$re" "$sbst"

fi

0 comments on commit be2f2b0

Please sign in to comment.