Don't use symbolizer on OSX
authorPhilip Jameson <pjameson@fb.com>
Thu, 31 Aug 2017 01:00:36 +0000 (18:00 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 31 Aug 2017 01:08:04 +0000 (18:08 -0700)
commit4717bdadf28139ef19b81315879892ed972fe7a5
treecc78107351c0fa92fe44e263d9d5612354ea416e
parentfaa5f59843ad80bd72e5bea20aaef053740ec074
Don't use symbolizer on OSX

Summary:
When trying to build with targets files on OSX, I couldn't use the symbolizer because it needs StackTrace, which requires libunwind and elf. This makes it so that we only build on linux for now. This also makes it so that we set FOLLY_USE_SYMBOLIZER in autoconf, since that wasn't set before.

Does a few things surrounding usage of the symbolizer library:
- Introduce FOLLY_USE_SYMBOLIZER in folly-config.h and USE_SYMBOLIZER as an AM definition
-- Filter some code out of init and some other random libs that optionally need the symbolizer
- Fix libdwarf detection. Previously on a fresh ubuntu container, we didn't find libdwarf/dwarf.h, so we stopped trying before looking at dwarf.h

Reviewed By: yfeldblum

Differential Revision: D5644352

fbshipit-source-id: f0a3580c41122e5e8fdfd17a9fdbb0921be21401
folly/Makefile.am
folly/SingletonStackTrace.cpp
folly/configure.ac
folly/experimental/Makefile.am
folly/fibers/test/StackOverflow.cpp
folly/init/Init.cpp
folly/init/Makefile.am