Dlopen libgccjit.so in order to support multiple targets more easily

This commit is contained in:
Antoni Boucher 2025-11-25 17:59:46 -05:00
parent 709f1cf79f
commit cfcd7ebf2d
4 changed files with 45 additions and 16 deletions

View file

@ -24,11 +24,11 @@ default = ["master"]
[dependencies]
object = { version = "0.37.0", default-features = false, features = ["std", "read"] }
tempfile = "3.20"
gccjit = "2.10"
#gccjit = { git = "https://github.com/rust-lang/gccjit.rs" }
gccjit = { version = "3.1", features = ["dlopen"] }
#gccjit = { git = "https://github.com/rust-lang/gccjit.rs", branch = "error-dlopen", features = ["dlopen"] }
# Local copy.
#gccjit = { path = "../gccjit.rs" }
#gccjit = { path = "../gccjit.rs", features = ["dlopen"] }
[dev-dependencies]
boml = "0.3.1"