Skip to content

Commit

Permalink
Merge pull request #149 from jakirkham-feedstocks/use_stdlib_c
Browse files Browse the repository at this point in the history
Migrate `sysroot_*` to `{{ stdlib('c') }}`
  • Loading branch information
leofang authored Apr 10, 2024
2 parents eaeade0 + b1ecbde commit 5bfd505
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .azure-pipelines/azure-pipelines-linux.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
c_stdlib_version: # [linux]
- 2.17 # [linux]

mpi_type:
- external # [linux]
- conda
10 changes: 5 additions & 5 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% set version = "5.0.2" %}
{% set major = version.rpartition('.')[0] %}
{% set cuda_major = (cuda_compiler_version|default("11.8")).rpartition('.')[0] %}
{% set build = 1 %}
{% set build = 2 %}

# give conda package a higher build number
{% if mpi_type == 'conda' %}
Expand Down Expand Up @@ -40,7 +40,7 @@ outputs:
- {{ compiler('cxx') }}
- {{ compiler('cuda') }} # [cuda_compiler != "None"]
- {{ compiler('fortran') }}
- sysroot_{{ target_platform }} 2.17 # [linux]
- {{ stdlib('c') }}
#- autoconf # [unix]
#- automake # [unix]
- libtool # [unix]
Expand Down Expand Up @@ -78,7 +78,7 @@ outputs:
- echo "{{ CONDA_BUILD_SYSROOT }}" # [osx]
requirements:
build:
- sysroot_{{ target_platform }} 2.17 # [linux]
- {{ stdlib('c') }}
run:
- {{ pin_subpackage('openmpi', exact=True) }}
# host C compilers work fine (better) on mac
Expand All @@ -97,7 +97,7 @@ outputs:
- echo "{{ CONDA_BUILD_SYSROOT }}" # [osx]
requirements:
build:
- sysroot_{{ target_platform }} 2.17 # [linux]
- {{ stdlib('c') }}
run:
- {{ pin_subpackage('openmpi', exact=True) }}
# host C compilers work fine (better) on mac
Expand All @@ -116,7 +116,7 @@ outputs:
- echo "{{ CONDA_BUILD_SYSROOT }}" # [osx]
requirements:
build:
- sysroot_{{ target_platform }} 2.17 # [linux]
- {{ stdlib('c') }}
run:
- {{ pin_subpackage('openmpi', exact=True) }}
- {{ compiler('fortran') }}
Expand Down

0 comments on commit 5bfd505

Please sign in to comment.