1[package] 2name = "rustc_codegen_gcc" 3version = "0.1.0" 4authors = ["Antoni Boucher <bouanto@zoho.com>"] 5edition = "2018" 6license = "MIT OR Apache-2.0" 7 8[lib] 9crate-type = ["dylib"] 10 11[[test]] 12name = "lang_tests_debug" 13path = "tests/lang_tests_debug.rs" 14harness = false 15[[test]] 16name = "lang_tests_release" 17path = "tests/lang_tests_release.rs" 18harness = false 19 20[features] 21default = ["master"] 22master = ["gccjit/master"] 23 24[dependencies] 25gccjit = { git = "https://github.com/antoyo/gccjit.rs" } 26 27# Local copy. 28#gccjit = { path = "../gccjit.rs" } 29 30smallvec = { version = "1.6.1", features = ["union", "may_dangle"] } 31 32[dev-dependencies] 33lang_tester = "0.3.9" 34tempfile = "3.1.0" 35 36[profile.dev] 37# By compiling dependencies with optimizations, performing tests gets much faster. 38opt-level = 3 39 40[profile.dev.package.rustc_codegen_gcc] 41# Disabling optimizations for cg_gccjit itself makes compilation after a change faster. 42opt-level = 0 43 44# Disable optimizations and debuginfo of build scripts and some of the heavy build deps, as the 45# execution time of build scripts is so fast that optimizing them slows down the total build time. 46[profile.dev.build-override] 47opt-level = 0 48debug = false 49 50[profile.release.build-override] 51opt-level = 0 52debug = false 53