Skip to content

Commit

Permalink
fix: fbthrift patching for fmt::range
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Oct 30, 2024
1 parent 2c1a147 commit 5709cdd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci-scripts/patch-fbthrift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ if [[ "$OSTYPE" == "msys" ]]; then
sbst="if (false) { \/* tebako patched *\/"
do_patch "$1/thrift/compiler/source_location.cc" "$re" "$sbst"

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

0 comments on commit 5709cdd

Please sign in to comment.