fix FOLLY_SAFE_CHECK under gcc+asan
Summary: The build was failing at link time with the claim that `__PRETTY_FUNCTION__` was in a discarded section. This occurs only under some versions of gcc with asan enabled. This approach works by making a copy of `__PRETTY_FUNCTION__` without ever taking a reference to it. This may not be the ideal fix, but it is the first one that worked upon experimentation. Differential Revision: D27786615 fbshipit-source-id: 2845c85bdc8158d4b2da7cd200ce55f982285a21
Showing
Please register or sign in to comment