diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/proxygen/remove-register.patch | |
Diffstat (limited to 'vcpkg/ports/proxygen/remove-register.patch')
| -rw-r--r-- | vcpkg/ports/proxygen/remove-register.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vcpkg/ports/proxygen/remove-register.patch b/vcpkg/ports/proxygen/remove-register.patch new file mode 100644 index 0000000..7b7bd91 --- /dev/null +++ b/vcpkg/ports/proxygen/remove-register.patch @@ -0,0 +1,12 @@ +diff --git a/proxygen/lib/utils/gen_perfect_hash_table.sh b/proxygen/lib/utils/gen_perfect_hash_table.sh +index 8de2871..bf40ba1 100755 +--- a/proxygen/lib/utils/gen_perfect_hash_table.sh ++++ b/proxygen/lib/utils/gen_perfect_hash_table.sh +@@ -32,6 +32,7 @@ function generate_perfect_hash_table { + # Generate output source file. + LC_ALL=C sort -u ${1?} | awk "${6?}" - "${5?}" | \ + ${8:-gperf} -m5 -D --output-file="${7?}" ++ perl -p -i -e "s/register//g" "${7?}" + + # Here we delete one of the comment lines gperf adds to the top of the file. + # i.e. /* Command-line: .../gperf -m5 --output-file=... */ |