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=... */