Skip to content

Commit

Permalink
Fix Vivify build from being skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
octurion committed Jul 27, 2024
1 parent cdfcf85 commit bcd5e83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vivify/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,24 @@ if(NOT DWARF_H_FOUND)
message(WARNING "skipping vivify build. dwarf.h not found!!!")
return()
endif()

set(CMAKE_REQUIRED_DEFINITIONS -DPACKAGE -DPACKAGE_VERSION)
check_include_file("bfd.h" BFD_H_FOUND)
set(CMAKE_REQUIRED_DEFINITIONS)
if(NOT BFD_H_FOUND)
message(WARNING "skipping vivify build. bfd.h not found!!!")
return()
endif()

find_library(LIBELF_FOUND elf)
if(NOT LIBELF_FOUND)
message(WARNING "skipping vivify build. libelf not found!!!")
return()
endif()

set(CMAKE_REQUIRED_DEFINITIONS -DPACKAGE -DPACKAGE_VERSION)
check_symbol_exists(bfd_section_flags "bfd.h" HAVE_BFD_SECTION_FLAGS)
set(CMAKE_REQUIRED_DEFINITIONS)

include_directories(include)
file(GLOB_RECURSE lib_vivify_headers lib/vivify/*.[hH])
Expand Down
1 change: 1 addition & 0 deletions vivify/demo/StackUnwind.C
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <libunwind-x86_64.h>

#include <cstdlib>
#include <stdexcept>
#include <sstream>
#include <algorithm>

Expand Down

0 comments on commit bcd5e83

Please sign in to comment.