File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -97,15 +97,16 @@ if [[ ${HOST} =~ .*darwin.* ]] && [[ -n ${CONDA_BUILD_SYSROOT} ]]; then
9797 CPPFLAGS=" -isysroot ${CONDA_BUILD_SYSROOT} " ${CPPFLAGS}
9898fi
9999
100+ if [[ " $target_platform " == linux-* ]]; then
101+ # 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"
103+ fi
104+
100105# Debian uses -O3 then resets it at the end to -O2 in _sysconfigdata.py
101106if [[ ${_OPTIMIZED} = yes ]]; then
102107 CPPFLAGS=$( echo " ${CPPFLAGS} " | sed " s/-O2/-O3/g" )
103108 CFLAGS=$( echo " ${CFLAGS} " | sed " s/-O2/-O3/g" )
104109 CXXFLAGS=$( echo " ${CXXFLAGS} " | sed " s/-O2/-O3/g" )
105- if [[ " $target_platform " == linux-* ]]; then
106- # For https://docs.python.org/3/howto/perf_profiling.html#how-to-obtain-the-best-results
107- CFLAGS+=" -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
108- fi
109110fi
110111
111112if [[ ${PY_INTERP_DEBUG} == yes ]]; then
You can’t perform that action at this time.
0 commit comments