You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unset -fno-operator-names for Folly/boost compat (#9586)
Summary:
folly/hash/Checksum.cpp includes boost/crc.hpp, which contains alternative operator representations on Boost < 1.84.0. This causes compilation failures when superproject CXXFLAGS are forwarded to Folly, since we set -fno-operator-names:
```
In file included from /hhvm/third-party/folly/src/folly/hash/Checksum.cpp:22:
/hhvm/_build/third-party/boost/bundled_boost-prefix/include/boost/crc.hpp:678:68: error: use of undeclared identifier 'not'
678 | new_dividend_bits = reflect_optionally( new_dividend_bits, not reflect,
| ^
/hhvm/_build/third-party/boost/bundled_boost-prefix/include/boost/crc.hpp:670:24: warning: unused parameter 'reflect' [-Wunused-parameter]
670 | word_length, bool reflect )
```
As a fix, unset this compiler flag, since we have no control over the operator representations that third-party headers might choose to use.
Pull Request resolved: #9586
Reviewed By: Wilfred
Differential Revision: D68581416
fbshipit-source-id: a956b36c4305a54dabb22d803b6fd2cf505caec9
0 commit comments