Skip to content

Commit 9ad041c

Browse files
committed
Don't import execinfo.h when not necessary
1 parent 634cd36 commit 9ad041c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
# CIBW_SKIP: pp*-macosx* *i686* *musllinux* *p36* *p37* *p38* pp*
6666
CIBW_ARCHS_LINUX: auto aarch64
6767
CIBW_BUILD: cp310-musllinux_aarch64
68-
CIBW_BUILD_VERBOSITY: 2
68+
CIBW_BUILD_VERBOSITY: 1
6969
CIBW_BEFORE_ALL_LINUX: |
7070
# yum install -y lapack-devel armadillo-devel
7171
apk add armadillo-dev

src/api/util.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,16 @@
55
#include <cmath>
66
#include <math.h>
77
#include <assert.h>
8-
#include <execinfo.h>
98
#include <signal.h>
109
#include <iomanip>
1110
#include <cstdio>
1211
#include <exception>
1312

13+
#ifdef DEBUG
14+
// This is not portable (only available on GNU/Linux
15+
#include <execinfo.h>
16+
#endif
17+
1418
using namespace gridpp;
1519

1620
bool gridpp::is_valid(float value) {

0 commit comments

Comments
 (0)