]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_codegen_cranelift/Cargo.toml
New upstream version 1.51.0+dfsg1
[rustc.git] / compiler / rustc_codegen_cranelift / Cargo.toml
CommitLineData
29967ef6
XL
1[package]
2name = "rustc_codegen_cranelift"
3version = "0.1.0"
4authors = ["bjorn3 <bjorn3@users.noreply.github.com>"]
5edition = "2018"
6
7[lib]
8crate-type = ["dylib"]
9
10[dependencies]
11# These have to be in sync with each other
5869c6ff 12cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", features = ["unwind", "x86", "x64"] }
29967ef6
XL
13cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
14cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
5869c6ff 15cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", optional = true }
29967ef6
XL
16cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
17target-lexicon = "0.11.0"
fc512014
XL
18gimli = { version = "0.23.0", default-features = false, features = ["write"]}
19object = { version = "0.22.0", default-features = false, features = ["std", "read_core", "write", "coff", "elf", "macho", "pe"] }
29967ef6
XL
20
21ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
22indexmap = "1.0.2"
23libloading = { version = "0.6.0", optional = true }
5869c6ff 24smallvec = "1.6.1"
29967ef6
XL
25
26# Uncomment to use local checkout of cranelift
27#[patch."https://github.com/bytecodealliance/wasmtime/"]
28#cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
29#cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
30#cranelift-module = { path = "../wasmtime/cranelift/module" }
5869c6ff 31#cranelift-jit = { path = "../wasmtime/cranelift/jit" }
29967ef6
XL
32#cranelift-object = { path = "../wasmtime/cranelift/object" }
33
34#[patch.crates-io]
35#gimli = { path = "../" }
36
37[features]
38default = ["jit", "inline_asm"]
5869c6ff 39jit = ["cranelift-jit", "libloading"]
29967ef6 40inline_asm = []
5869c6ff 41oldbe = []
29967ef6
XL
42
43[profile.dev]
44# By compiling dependencies with optimizations, performing tests gets much faster.
45opt-level = 3
46
47[profile.dev.package.rustc_codegen_cranelift]
48# Disabling optimizations for cg_clif itself makes compilation after a change faster.
49opt-level = 0
50
51[profile.release.package.rustc_codegen_cranelift]
52incremental = true
53
54# Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
55# execution time of build scripts is so fast that optimizing them slows down the total build time.
56[profile.dev.build-override]
57opt-level = 0
58debug = false
59
60[profile.release.build-override]
61opt-level = 0
62debug = false
63
64[profile.dev.package.cranelift-codegen-meta]
65opt-level = 0
66debug = false
67
68[profile.release.package.cranelift-codegen-meta]
69opt-level = 0
70debug = false
71
72[profile.dev.package.syn]
73opt-level = 0
74debug = false
75
76[profile.release.package.syn]
77opt-level = 0
78debug = false