diff --git a/recipe/install_base.sh b/recipe/install_base.sh index 5c6b2460..91c0a027 100644 --- a/recipe/install_base.sh +++ b/recipe/install_base.sh @@ -30,7 +30,7 @@ unset _CONDA_PYTHON_SYSCONFIGDATA_NAME declare -a LTO_CFLAGS=() if [[ ${_OPTIMIZED} == yes ]]; then - if [[ ${CC} =~ .*gcc.* ]]; then + if [[ ${c_compiler} =~ .*gcc.* ]]; then LTO_CFLAGS+=(-fuse-linker-plugin) LTO_CFLAGS+=(-ffat-lto-objects) # -flto must come after -flto-partition due to the replacement code @@ -58,6 +58,10 @@ if [[ ${_OPTIMIZED} == yes ]]; then _FLAGS_REPLACE+=("") _FLAGS_REPLACE+=("-L.") _FLAGS_REPLACE+=("") + _FLAGS_REPLACE+=(-flto-partition=none) + _FLAGS_REPLACE+=("") + _FLAGS_REPLACE+=(-flto) + _FLAGS_REPLACE+=("") for _LTO_CFLAG in "${LTO_CFLAGS[@]}"; do _FLAGS_REPLACE+=(${_LTO_CFLAG}) _FLAGS_REPLACE+=("") diff --git a/recipe/meta.yaml b/recipe/meta.yaml index 6115c41f..a0577819 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -4,7 +4,7 @@ {% set ver2 = '.'.join(version.split('.')[0:2]) %} {% set ver2nd = ''.join(version.split('.')[0:2]) %} {% set ver3nd = ''.join(version.split('.')[0:3]) %} -{% set build_number = 2 %} +{% set build_number = 3 %} # this makes the linter happy {% set channel_targets = channel_targets or 'conda-forge main' %} @@ -160,7 +160,9 @@ outputs: - python weak: - python_abi {{ ver2 }}.* *_cp{{ ver2nd }} +{% if py_interp_debug == "yes" %} - python {{ ver2 }}.* *_debug_cpython +{% endif %} script_env: - PY_INTERP_DEBUG={{ py_interp_debug }} # Putting these here means they get emitted to build_env_setup.{sh,bat} meaning we can launch IDEs