52 lines
1.1 KiB
TOML
52 lines
1.1 KiB
TOML
|
[package]
|
||
|
name = "rustc_codegen_gcc"
|
||
|
version = "0.1.0"
|
||
|
authors = ["Antoni Boucher <bouanto@zoho.com>"]
|
||
|
edition = "2018"
|
||
|
license = "MIT OR Apache-2.0"
|
||
|
|
||
|
[lib]
|
||
|
crate-type = ["dylib"]
|
||
|
|
||
|
[[test]]
|
||
|
name = "lang_tests"
|
||
|
path = "tests/lib.rs"
|
||
|
harness = false
|
||
|
|
||
|
[dependencies]
|
||
|
gccjit = { git = "https://github.com/antoyo/gccjit.rs" }
|
||
|
|
||
|
# Local copy.
|
||
|
#gccjit = { path = "../gccjit.rs" }
|
||
|
|
||
|
target-lexicon = "0.10.0"
|
||
|
|
||
|
ar = "0.8.0"
|
||
|
|
||
|
[dependencies.object]
|
||
|
version = "0.25.0"
|
||
|
default-features = false
|
||
|
features = ["read", "std", "write"] # We don't need WASM support.
|
||
|
|
||
|
[dev-dependencies]
|
||
|
lang_tester = "0.3.9"
|
||
|
tempfile = "3.1.0"
|
||
|
|
||
|
[profile.dev]
|
||
|
# By compiling dependencies with optimizations, performing tests gets much faster.
|
||
|
opt-level = 3
|
||
|
|
||
|
[profile.dev.package.rustc_codegen_gcc]
|
||
|
# Disabling optimizations for cg_gccjit itself makes compilation after a change faster.
|
||
|
opt-level = 0
|
||
|
|
||
|
# Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the
|
||
|
# execution time of build scripts is so fast that optimizing them slows down the total build time.
|
||
|
[profile.dev.build-override]
|
||
|
opt-level = 0
|
||
|
debug = false
|
||
|
|
||
|
[profile.release.build-override]
|
||
|
opt-level = 0
|
||
|
debug = false
|