Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable folly::Symbolizer for debug symbols
This change depends on hhvm/hhvm-third-party#123, which enables 2 additional source files to be compiled and adds libunwind as a dependency for folly. The "-lgcc_s" added before "-lunwind" is used to solve a linking order issue that causes "_Ux86_64_setcontext" to be called from libunwind instead of libgcc_s and messes up the signal mask (more details here http://savannah.nongnu.org/bugs/?48486). The libgcc_s dependency is already part of HHVM, this change enforces the order in which the libraries are linked. By enabling folly::Symbolizer, HHVM will show debug symbols (in stacktraces, perf, GDB) when huge pages are enabled (default behavior for open source builds). Also, one nice side-effect is that this change causes HHVM to show symbols in backtraces (after a crash) for non-huge-pages builds, which were missing for some reason.
- Loading branch information