]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
86347a006d7d928003befdd3456b45870dfd8af5
[rust.git] / Cargo.toml
1 cargo-features = ["profile-overrides"]
2
3 [package]
4 name = "rustc_codegen_cranelift"
5 version = "0.1.0"
6 authors = ["bjorn3 <bjorn3@users.noreply.github.com>"]
7 edition = "2018"
8
9 [lib]
10 crate-type = ["dylib"]
11
12 [features]
13 backend_object = ["object/write", "cranelift-object"]
14
15 [dependencies]
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"
22 faerie = "0.11.0"
23
24 #goblin = "0.0.17"
25 ar = "0.8.0"
26 byteorder = "1.2.7"
27 libc = "0.2.53"
28 gimli = "0.19.0"
29 indexmap = "1.0.2"
30 libloading = "0.5.1"
31
32 [dependencies.object]
33 version = "0.14.0"
34 default-features = false
35 features = ["compression", "read", "std"] # We don't need WASM support
36
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" }
44
45 #[patch.crates-io]
46 #gimli = { path = "../" }
47
48 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
49 cranelift-simplejit = { git = "https://github.com/CraneStation/cranelift.git" }
50
51 [profile.dev]
52 # By compiling dependencies with optimizations, performing tests gets much faster.
53 opt-level = 3
54
55 [profile.dev.overrides."rustc_codegen_cranelift"]
56 # Disabling optimizations for cg_clif itself makes compilation after a change faster.
57 opt-level = 0
58
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]
62 opt-level = 0
63 debug = false
64
65 [profile.dev.overrides.cranelift-codegen-meta]
66 opt-level = 0
67 debug = false
68
69 [profile.dev.overrides.syn]
70 opt-level = 0
71 debug = false
72
73 [profile.dev.overrides.synstructure]
74 opt-level = 0
75 debug = false