Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
44adcd2
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-curator[bot] Mar 16, 2024
3914e91
[ci skip] [skip ci] [cf admin skip] ***NO_CI*** admin migration Conda…
conda-forge-curator[bot] May 12, 2024
114aeed
Merge remote-tracking branch 'upstream/main' into rc
h-vetinari Jul 25, 2024
f1538df
Revert "remove rc-channels"
h-vetinari Jul 25, 2024
d42b81a
MNT: Re-rendered with conda-build 24.5.1, conda-smithy 3.37.1, and co…
h-vetinari Jul 25, 2024
6aa0bf2
alphabetize conda-forge.yml
h-vetinari Jun 14, 2024
3adf903
reduce build parallelism on aarch
h-vetinari Jun 14, 2024
16492f6
mlir v19.1.0.rc1
h-vetinari Jul 26, 2024
46b5bb9
adapt to new rc-suffix scheme
h-vetinari Jul 28, 2024
e64f682
Merge pull request #76 from h-vetinari/rc
h-vetinari Jul 28, 2024
3914eac
mlir v19.1.0.rc2
h-vetinari Aug 5, 2024
a23d096
Merge pull request #77 from h-vetinari/rc
h-vetinari Aug 5, 2024
242609e
use bootstrap compilers consistently on osx
h-vetinari Aug 5, 2024
25d16e1
clean-ups from link check
h-vetinari Aug 6, 2024
3267229
MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.37.2, and co…
h-vetinari Aug 6, 2024
f5b0bf1
clean up -DCROSS_TOOLCHAIN_FLAGS_NATIVE
h-vetinari Aug 6, 2024
f51a175
Merge pull request #78 from h-vetinari/rc
h-vetinari Aug 6, 2024
41974da
mlir v19.1.0.rc3
h-vetinari Aug 21, 2024
bcbd667
MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.38.0, and co…
h-vetinari Aug 21, 2024
001f3a9
re-add zlib as a host-dep for mlir on unix
h-vetinari Aug 21, 2024
f2a1d99
mlir v19.1.0.rc3 (#79)
github-actions[bot] Aug 21, 2024
18733bf
ignore unused zlib run-export
h-vetinari Aug 21, 2024
33e1bdd
mlir v19.1.0.rc4
h-vetinari Sep 3, 2024
e7fd3c1
mlir v19.1.0.rc4 (#80)
github-actions[bot] Sep 4, 2024
1a9c4b6
updated v19.1.0
regro-cf-autotick-bot Sep 17, 2024
9a5b60f
remove rc-channels
h-vetinari Sep 17, 2024
6f0e139
MNT: Re-rendered with conda-build 24.7.1, conda-smithy 3.39.1, and co…
h-vetinari Sep 17, 2024
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
2 changes: 1 addition & 1 deletion .azure-pipelines/azure-pipelines-win.yml

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

6 changes: 3 additions & 3 deletions .ci_support/linux_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
c_stdlib:
- sysroot
c_stdlib_version:
- '2.12'
- '2.17'
cdt_name:
- cos6
- cos7
channel_sources:
- conda-forge
channel_targets:
- conda-forge main
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/linux_aarch64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/linux_ppc64le_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ channel_targets:
cxx_compiler:
- gxx
cxx_compiler_version:
- '12'
- '13'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
target_platform:
Expand Down
4 changes: 2 additions & 2 deletions .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ channel_sources:
channel_targets:
- conda-forge main
cxx_compiler:
- clangxx
- clang_bootstrap
cxx_compiler_version:
- '16'
- '17'
macos_machine:
- x86_64-apple-darwin13.4.0
target_platform:
Expand Down
2 changes: 1 addition & 1 deletion .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ channel_targets:
cxx_compiler:
- clang_bootstrap
cxx_compiler_version:
- '16'
- '17'
macos_machine:
- arm64-apple-darwin20.0.0
target_platform:
Expand Down
2 changes: 2 additions & 0 deletions .ci_support/win_64_.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ target_platform:
- win-64
zlib:
- '1'
zstd:
- '1.5'
1 change: 0 additions & 1 deletion .scripts/build_steps.sh

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

2 changes: 1 addition & 1 deletion .scripts/run_osx_build.sh

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.

9 changes: 6 additions & 3 deletions build-locally.py

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

9 changes: 6 additions & 3 deletions conda-forge.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
build_platform: {osx_arm64: osx_64, linux_ppc64le: linux_64, linux_aarch64: linux_64}
build_platform:
linux_aarch64: linux_64
linux_ppc64le: linux_64
osx_arm64: osx_64
conda_build:
pkg_format: '2'
conda_forge_output_validation: true
github:
branch_name: main
tooling_branch_name: main
conda_build:
pkg_format: '2'
test: native_and_emulated
16 changes: 12 additions & 4 deletions recipe/build.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
#!/bin/bash

set -euxo pipefail

PARALLEL=""
if [[ "${target_platform}" == "linux-ppc64le" ]]; then
export CFLAGS="${CFLAGS//-fno-plt/}"
export CXXFLAGS="${CXXFLAGS//-fno-plt/}"
elif [[ "${target_platform}" == "linux-aarch64" ]]; then
# reduce parallelism on aarch to avoid OOM
PARALLEL="-j2"
elif [[ "${target_platform}" == osx-* ]]; then
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_ENABLE_LIBCXX=ON"
CMAKE_ARGS="$CMAKE_ARGS -DLLVM_ENABLE_LIBCXX=ON"
fi

if [[ "${CONDA_BUILD_CROSS_COMPILATION:-0}" == "1" ]]; then
CMAKE_ARGS="${CMAKE_ARGS} -DLLVM_TABLEGEN_EXE=$BUILD_PREFIX/bin/llvm-tblgen -DNATIVE_LLVM_DIR=$BUILD_PREFIX/lib/cmake/llvm"
CMAKE_ARGS="${CMAKE_ARGS} -DCROSS_TOOLCHAIN_FLAGS_NATIVE=-DCMAKE_C_COMPILER=$CC_FOR_BUILD;-DCMAKE_CXX_COMPILER=$CXX_FOR_BUILD;-DCMAKE_C_FLAGS=-O2;-DCMAKE_CXX_FLAGS=-O2;-DCMAKE_EXE_LINKER_FLAGS=\"-L$BUILD_PREFIX/lib\";-DCMAKE_MODULE_LINKER_FLAGS=;-DCMAKE_SHARED_LINKER_FLAGS=;-DCMAKE_STATIC_LINKER_FLAGS=;-DCMAKE_AR=$(which ${AR});-DCMAKE_RANLIB=$(which ${RANLIB});-DCMAKE_PREFIX_PATH=${BUILD_PREFIX}"
NATIVE_FLAGS="-DCMAKE_C_COMPILER=$CC_FOR_BUILD;-DCMAKE_CXX_COMPILER=$CXX_FOR_BUILD"
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_C_FLAGS=-O2;-DCMAKE_CXX_FLAGS=-O2"
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_EXE_LINKER_FLAGS=-Wl,-rpath,${BUILD_PREFIX}/lib"
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_MODULE_LINKER_FLAGS=;-DCMAKE_SHARED_LINKER_FLAGS="
NATIVE_FLAGS="${NATIVE_FLAGS};-DCMAKE_STATIC_LINKER_FLAGS=;-DCMAKE_PREFIX_PATH=${BUILD_PREFIX}"
CMAKE_ARGS="${CMAKE_ARGS} -DCROSS_TOOLCHAIN_FLAGS_NATIVE=${NATIVE_FLAGS}"
else
rm -rf $BUILD_PREFIX/bin/llvm-tblgen
fi
Expand All @@ -29,4 +37,4 @@ cmake ${CMAKE_ARGS} \
-GNinja \
../mlir

ninja
ninja ${PARALLEL}
8 changes: 4 additions & 4 deletions recipe/conda_build_config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
c_compiler: # [osx and arm64]
- clang_bootstrap # [osx and arm64]
cxx_compiler: # [osx and arm64]
- clang_bootstrap # [osx and arm64]
c_compiler: # [osx]
- clang_bootstrap # [osx]
cxx_compiler: # [osx]
- clang_bootstrap # [osx]
25 changes: 18 additions & 7 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% set version = "18.1.8" %}
{% set version = "19.1.0" %}
{% set major_version = version.split(".")[0] %}
{% set maj_min = major_version ~ "." ~ version.split(".")[1] %}

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

package:
Expand All @@ -12,7 +12,7 @@ package:

source:
- url: https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-{{ version.replace(".rc", "-rc") }}.tar.gz
sha256: 09c08693a9afd6236f27a2ebae62cda656eba19021ef3f94d59e931d662d4856
sha256: 0a08341036ca99a106786f50f9c5cb3fbe458b3b74cab6089fd368d0edb2edfe
patches:
# https://reviews.llvm.org/D99470
- patches/0001-Support-cross-compiling-standalone-MLIR.patch
Expand All @@ -37,6 +37,10 @@ outputs:
- name: mlir
script: install_mlir.sh # [unix]
script: install_mlir.bat # [win]
build:
ignore_run_exports_from:
# the build fails if it doesn't find zlib, but it's not used
- zlib # [unix]
requirements:
build:
- {{ stdlib('c') }}
Expand All @@ -49,9 +53,12 @@ outputs:
- llvmdev {{ version }}
- llvm {{ version }}
- zlib
- zstd # [win]
run:
- {{ pin_subpackage("libmlir", exact=True) }}
- llvmdev {{ version }}
- {{ pin_subpackage("libmlir" ~ major_version, exact=True) }} # [unix]
# we need to do this manually because clang_bootstrap has no run-export
- libcxx >={{ cxx_compiler_version }} # [osx]
test:
commands:
# static library
Expand Down Expand Up @@ -84,7 +91,9 @@ outputs:
host:
- llvmdev {{ version }}
- llvm {{ version }}
- zlib
run:
# we need to do this manually because clang_bootstrap has no run-export
- libcxx >={{ cxx_compiler_version }} # [osx]
test:
commands:
# presence of versioned libraries
Expand Down Expand Up @@ -118,14 +127,16 @@ outputs:
host:
- llvmdev {{ version }}
- llvm {{ version }}
- zlib
- {{ pin_subpackage("libmlir" ~ major_version, exact=True) }} # [unix]
run:
- {{ pin_subpackage("libmlir" ~ major_version, exact=True) }} # [unix]
# we need to do this manually because clang_bootstrap has no run-export
- libcxx >={{ cxx_compiler_version }} # [osx]
test:
commands:
# presence of unversioned libraries
- test -f $PREFIX/lib/libMLIR${SHLIB_EXT} # [unix]
# nothing on windows (package currently empty)
- if exist %LIBRARY_BIN%\libmlir.dll exit 1 # [win]

about:
Expand Down