Skip to content

Commit

Permalink
[MLIR] Correct version check (JuliaPackaging#4050)
Browse files Browse the repository at this point in the history
[skip build]
  • Loading branch information
vchuravy authored and simeonschaub committed Feb 23, 2022
1 parent b465cd4 commit 8dbb383
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions L/LLVM/MLIR@12.0.1/build_tarballs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name = "MLIR"
llvm_full_version = v"12.0.1+4"
libllvm_version = v"12.0.1+4"


# Include common LLVM stuff
include("../common.jl")
build_tarballs(ARGS, configure_extraction(ARGS, llvm_full_version, name, libllvm_version; experimental_platforms=true)...; skip_audit=true, julia_compat="1.7")
4 changes: 2 additions & 2 deletions L/LLVM/common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ function configure_build(ARGS, version; experimental_platforms=false, assert=fal
if version >= v"8"
push!(products, ExecutableProduct("llvm-mca", :llvm_mca, "tools"))
end
if version == v"12"
if v"12" <= version < v"13"
push!(products, LibraryProduct(["MLIRPublicAPI", "libMLIRPublicAPI"], :mlir_public, dont_dlopen=true))
end
if version >= v"12"
Expand Down Expand Up @@ -427,7 +427,7 @@ function configure_extraction(ARGS, LLVM_full_version, name, libLLVM_version=not
products = [
LibraryProduct("libMLIR", :libMLIR, dont_dlopen=true),
]
if v"12" == version
if v"12" <= version < v"13"
push!(products, LibraryProduct("libMLIRPublicAPI", :libMLIRPublicAPI, dont_dlopen=true))
end
elseif name == "LLVM"
Expand Down

0 comments on commit 8dbb383

Please sign in to comment.