Skip to content

Commit 18df359

Browse files
fix omit on ppc64le
1 parent 6dd0312 commit 18df359

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

recipe/build_base.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ fi
9999

100100
if [[ "$target_platform" == linux-* ]]; then
101101
# For https://docs.python.org/3/howto/perf_profiling.html#how-to-obtain-the-best-results
102-
CFLAGS+=" -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
102+
CFLAGS+=" -fno-omit-frame-pointer"
103+
if [[ "$target_platform" != linux-ppc64le ]]; then
104+
# -mno-omit-leaf-frame-pointer is not supported on ppc64le
105+
CFLAGS+=" -mno-omit-leaf-frame-pointer"
106+
fi
103107
fi
104108

105109
# Debian uses -O3 then resets it at the end to -O2 in _sysconfigdata.py

0 commit comments

Comments
 (0)