Skip to content

Commit 5451686

Browse files
author
Justin Boswell
authored
ARM execinfo fixes (awslabs#598)
* look for arm when looking for execinfo
1 parent 15e64e4 commit 5451686

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/AwsFeatureTests.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ int main() {
4545
__asm__ __volatile__(\"\":\"=r\"(foo):\"r\"(bar):\"memory\");
4646
}" AWS_HAVE_GCC_INLINE_ASM)
4747

48-
if(NOT LEGACY_COMPILER_SUPPORT)
48+
string(REGEX MATCH "^(aarch64|arm)" ARM_CPU ${CMAKE_SYSTEM_PROCESSOR})
49+
if(NOT LEGACY_COMPILER_SUPPORT OR ARM_CPU)
4950
check_c_source_compiles("
5051
#include <execinfo.h>
5152
int main() {

0 commit comments

Comments
 (0)