2020-05-10 09:54:30 -05:00
|
|
|
[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]]
|
2022-06-06 21:04:37 -05:00
|
|
|
name = "lang_tests_debug"
|
|
|
|
path = "tests/lang_tests_debug.rs"
|
2020-05-10 09:54:30 -05:00
|
|
|
harness = false
|
2022-06-06 21:04:37 -05:00
|
|
|
[[test]]
|
|
|
|
name = "lang_tests_release"
|
|
|
|
path = "tests/lang_tests_release.rs"
|
|
|
|
harness = false
|
|
|
|
|
|
|
|
[features]
|
|
|
|
master = ["gccjit/master"]
|
2024-03-05 12:58:36 -06:00
|
|
|
default = ["master"]
|
2020-05-10 09:54:30 -05:00
|
|
|
|
|
|
|
[dependencies]
|
2024-07-05 14:35:57 -05:00
|
|
|
gccjit = "2.1"
|
2020-05-10 09:54:30 -05:00
|
|
|
|
|
|
|
# Local copy.
|
|
|
|
#gccjit = { path = "../gccjit.rs" }
|
|
|
|
|
2023-10-09 14:53:34 -05:00
|
|
|
object = { version = "0.30.1", default-features = false, features = [
|
|
|
|
"std",
|
|
|
|
"read",
|
|
|
|
] }
|
2023-03-05 11:03:19 -06:00
|
|
|
smallvec = { version = "1.6.1", features = ["union", "may_dangle"] }
|
2023-10-09 14:53:34 -05:00
|
|
|
# TODO(antoyo): make tempfile optional.
|
|
|
|
tempfile = "3.7.1"
|
2023-03-05 11:03:19 -06:00
|
|
|
|
2020-05-10 09:54:30 -05:00
|
|
|
[dev-dependencies]
|
2024-03-05 12:58:36 -06:00
|
|
|
lang_tester = "0.8.0"
|
2020-05-10 09:54:30 -05:00
|
|
|
tempfile = "3.1.0"
|
2024-03-05 12:58:36 -06:00
|
|
|
boml = "0.3.1"
|
2020-05-10 09:54:30 -05:00
|
|
|
|
|
|
|
[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
|
2024-03-05 12:58:36 -06:00
|
|
|
|
|
|
|
[package.metadata.rust-analyzer]
|
|
|
|
rustc_private = true
|