Commit ba837af1 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Replace FOLLY_HAVE_LIBDWARF_DWARF_H with __has_include

Summary:
[Folly] Replace `FOLLY_HAVE_LIBDWARF_DWARF_H` with `__has_include`.

Now that folly only targets which support `__has_include`.

Reviewed By: Orvid

Differential Revision: D9281453

fbshipit-source-id: f416a6e4eb25ec31f86c705b7e9aafb1064e876a
parent 877030c7
......@@ -18,10 +18,9 @@
#include <type_traits>
// FOLLY_HAVE_LIBDWARF_DWARF_H is only ever set for autoconf-based builds.
// We can delete this #if check once we completely deprecate and remove
// the autoconf build.
#if FOLLY_HAVE_LIBDWARF_DWARF_H
#if __has_include(<libdwarf/dwarf.h>)
#include <libdwarf/dwarf.h>
#else
#include <dwarf.h> // @manual
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment