Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion recipe/install_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,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
Expand Down Expand Up @@ -68,6 +68,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+=("")
Expand Down
2 changes: 1 addition & 1 deletion recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = 5 %}
{% set build_number = 6 %}

# this makes the linter happy
{% set channel_targets = channel_targets or 'conda-forge main' %}
Expand Down