]>
Commit | Line | Data |
---|---|---|
c295e0f8 XL |
1 | [package] |
2 | name = "rustc_codegen_gcc" | |
3 | version = "0.1.0" | |
4 | authors = ["Antoni Boucher <bouanto@zoho.com>"] | |
5 | edition = "2018" | |
6 | license = "MIT OR Apache-2.0" | |
7 | ||
8 | [lib] | |
9 | crate-type = ["dylib"] | |
10 | ||
11 | [[test]] | |
923072b8 FG |
12 | name = "lang_tests_debug" |
13 | path = "tests/lang_tests_debug.rs" | |
c295e0f8 | 14 | harness = false |
923072b8 FG |
15 | [[test]] |
16 | name = "lang_tests_release" | |
17 | path = "tests/lang_tests_release.rs" | |
18 | harness = false | |
19 | ||
20 | [features] | |
21 | default = ["master"] | |
22 | master = ["gccjit/master"] | |
c295e0f8 XL |
23 | |
24 | [dependencies] | |
25 | gccjit = { git = "https://github.com/antoyo/gccjit.rs" } | |
26 | ||
27 | # Local copy. | |
28 | #gccjit = { path = "../gccjit.rs" } | |
29 | ||
353b0b11 FG |
30 | smallvec = { version = "1.6.1", features = ["union", "may_dangle"] } |
31 | ||
c295e0f8 XL |
32 | [dev-dependencies] |
33 | lang_tester = "0.3.9" | |
34 | tempfile = "3.1.0" | |
35 | ||
36 | [profile.dev] | |
37 | # By compiling dependencies with optimizations, performing tests gets much faster. | |
38 | opt-level = 3 | |
39 | ||
40 | [profile.dev.package.rustc_codegen_gcc] | |
41 | # Disabling optimizations for cg_gccjit itself makes compilation after a change faster. | |
42 | opt-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] | |
47 | opt-level = 0 | |
48 | debug = false | |
49 | ||
50 | [profile.release.build-override] | |
51 | opt-level = 0 | |
52 | debug = false |