1 cargo-features = ["profile-overrides"]
4 name = "rustc_codegen_cranelift"
6 authors = ["bjorn3 <bjorn3@users.noreply.github.com>"]
10 crate-type = ["dylib"]
13 backend_object = ["object/write", "cranelift-object"]
16 # These have to be in sync with each other
17 cranelift = { git = "https://github.com/CraneStation/cranelift.git" }
18 cranelift-module = { git = "https://github.com/CraneStation/cranelift.git" }
19 cranelift-faerie = { git = "https://github.com/CraneStation/cranelift.git" }
20 cranelift-object = { git = "https://github.com/CraneStation/cranelift.git", optional = true }
21 target-lexicon = "0.8.1"
34 default-features = false
35 features = ["compression", "read", "std"] # We don't need WASM support
37 # Uncomment to use local checkout of cranelift
38 #[patch."https://github.com/CraneStation/cranelift.git"]
39 #cranelift = { path = "../cranelift/cranelift-umbrella" }
40 #cranelift-module = { path = "../cranelift/cranelift-module" }
41 #cranelift-simplejit = { path = "../cranelift/cranelift-simplejit" }
42 #cranelift-faerie = { path = "../cranelift/cranelift-faerie" }
43 #cranelift-object = { path = "../cranelift/cranelift-object" }
46 #gimli = { path = "../" }
48 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
49 cranelift-simplejit = { git = "https://github.com/CraneStation/cranelift.git" }
52 # By compiling dependencies with optimizations, performing tests gets much faster.
55 [profile.dev.overrides."rustc_codegen_cranelift"]
56 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
59 # Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
60 # execution time of build scripts is so fast that optimizing them slows down the total build time.
61 [profile.dev.build-override]
65 [profile.dev.overrides.cranelift-codegen-meta]
69 [profile.dev.overrides.syn]
73 [profile.dev.overrides.synstructure]