Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mlir 17.0.0.rc3 #52

Merged
merged 2 commits into from
Aug 23, 2023
Merged
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
20 changes: 11 additions & 9 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
{% set version = "17.0.0.rc2" %}
{% set version = "17.0.0.rc3" %}
{% set major_version = version.split(".")[0] %}

{% set git = "git" if version.split(".")[-1] == "dev0" else "" %}
# as of LLVM 17, we expect an "rc" suffix for the release candidates
{% set extra = "rc" if version.split(".")[-1] not in range(7) else "" %}
{% set extra = "git" if version.split(".")[-1] == "dev0" else extra %}

package:
name: mlir-split
version: {{ version }}

source:
- url: https://github.com/llvm/llvm-project/releases/download/llvmorg-{{ version.replace(".rc", "-rc") }}/llvm-project-{{ version.replace(".rc", "rc") }}.src.tar.xz
sha256: 71c018a6c0d3f7ccfe66a8ea7a68281a256fcd3bc35099e61616a92dcbbf0859
sha256: 60493f4e974fcca7b739aea4901af2d957b0eaea34b42815359be59cf6c88fa2
patches:
# https://reviews.llvm.org/D99470
- patches/0001-Support-cross-compiling-standalone-MLIR.patch
Expand Down Expand Up @@ -81,12 +83,12 @@ outputs:
test:
commands:
# presence of versioned libraries
- test -f $PREFIX/lib/libMLIR.so.{{ major_version }}{{ git }} # [linux]
- test -f $PREFIX/lib/libmlir_runner_utils.so.{{ major_version }}{{ git }} # [linux]
- test -f $PREFIX/lib/libmlir_c_runner_utils.so.{{ major_version }}{{ git }} # [linux]
- test -f $PREFIX/lib/libMLIR.{{ major_version }}{{ git }}.dylib # [osx]
- test -f $PREFIX/lib/libmlir_runner_utils.{{ major_version }}{{ git }}.dylib # [osx]
- test -f $PREFIX/lib/libmlir_c_runner_utils.{{ major_version }}{{ git }}.dylib # [osx]
- test -f $PREFIX/lib/libMLIR.so.{{ major_version }}{{ extra }} # [linux]
- test -f $PREFIX/lib/libmlir_runner_utils.so.{{ major_version }}{{ extra }} # [linux]
- test -f $PREFIX/lib/libmlir_c_runner_utils.so.{{ major_version }}{{ extra }} # [linux]
- test -f $PREFIX/lib/libMLIR.{{ major_version }}{{ extra }}.dylib # [osx]
- test -f $PREFIX/lib/libmlir_runner_utils.{{ major_version }}{{ extra }}.dylib # [osx]
- test -f $PREFIX/lib/libmlir_c_runner_utils.{{ major_version }}{{ extra }}.dylib # [osx]

# absence of unversioned libraries
- test ! -f $PREFIX/lib/libMLIR$SHLIB_EXT # [unix]
Expand Down