From 254525c31c9bf9772dfd2b265cf6ef25fcbde131 Mon Sep 17 00:00:00 2001 From: Adeel Date: Tue, 21 May 2019 01:58:07 +0000 Subject: [PATCH] Add header check for atomic_ops.h --- src/pal/src/libunwind/src/config.h.in | 2 ++ src/pal/src/libunwind/src/configure.cmake | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/pal/src/libunwind/src/config.h.in b/src/pal/src/libunwind/src/config.h.in index 5e3421b..1bc7c93 100644 --- a/src/pal/src/libunwind/src/config.h.in +++ b/src/pal/src/libunwind/src/config.h.in @@ -13,4 +13,6 @@ #cmakedefine HAVE__BUILTIN_UNREACHABLE #cmakedefine HAVE_SYNC_ATOMICS +#cmakedefine HAVE_ATOMIC_OPS_H + #endif diff --git a/src/pal/src/libunwind/src/configure.cmake b/src/pal/src/libunwind/src/configure.cmake index 3e45405..a6d37b5 100644 --- a/src/pal/src/libunwind/src/configure.cmake +++ b/src/pal/src/libunwind/src/configure.cmake @@ -10,6 +10,8 @@ check_include_files(sys/endian.h HAVE_SYS_ENDIAN_H) check_include_files(link.h HAVE_LINK_H) check_include_files(sys/link.h HAVE_SYS_LINK_H) +check_include_files(atomic_ops.h HAVE_ATOMIC_OPS_H) + check_cxx_source_compiles(" int main(int argc, char **argv) { -- 2.7.4