Skip to content

Commit

Permalink
Update generator script (#68)
Browse files Browse the repository at this point in the history
* Update generator script

* Apply suggested changes

Co-authored-by: Sergio Sánchez Ramírez <15837247+mofeing@users.noreply.github.com>

* Delete Manifest.toml

---------

Co-authored-by: Sergio Sánchez Ramírez <15837247+mofeing@users.noreply.github.com>
  • Loading branch information
Gnimuc and mofeing authored Apr 12, 2024
1 parent e6a5ef2 commit ce69c0d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 291 deletions.
288 changes: 0 additions & 288 deletions bindings/Manifest.toml

This file was deleted.

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

0 comments on commit ce69c0d

Please sign in to comment.