Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions bindings/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
BinaryBuilderBase = "7f725544-6523-48cd-82d1-3fa08ff4056e"
Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"

[compat]
Clang = "0.18.0"
7 changes: 4 additions & 3 deletions bindings/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ for (julia_version, llvm_version) in julia_llvm
options["general"]["output_file_path"] = output_file_path

libmlir_header_dir = joinpath(include_dir, "mlir-c")
args = Generators.get_default_args()
append!(args, ["-I", include_dir, "-x", "c++"])
args = Generators.get_default_args(get_triple(); is_cxx=true)
push!(args, "-I"*include_dir)
push!(args, "-xc++")

headers = detect_headers(libmlir_header_dir, args, Dict(), endswith("Python/Interop.h"))
ctx = create_context(headers, args, options)
Expand Down Expand Up @@ -211,4 +212,4 @@ for (julia_version, llvm_version) in julia_llvm
println("- Generated \"$binding\" from $(join(tds, ",", " and "))")
end
end
end
end