diff options
Diffstat (limited to 'zjit/src/lib.rs')
| -rw-r--r-- | zjit/src/lib.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/zjit/src/lib.rs b/zjit/src/lib.rs index 8ccb6ae4c1..1440b6ff69 100644 --- a/zjit/src/lib.rs +++ b/zjit/src/lib.rs @@ -1,15 +1,21 @@ #![allow(dead_code)] #![allow(static_mut_refs)] +#![allow(clippy::enum_variant_names)] +#![allow(clippy::too_many_arguments)] +#![allow(clippy::needless_bool)] + // Add std docs to cargo doc. #[doc(inline)] pub use std; mod state; +mod distribution; mod cruby; mod cruby_methods; mod hir; mod hir_type; +mod hir_effect; mod codegen; mod stats; mod cast; @@ -21,3 +27,20 @@ mod disasm; mod options; mod profile; mod invariants; +mod bitset; +mod gc; +mod jit_frame; +mod payload; +mod json; +mod ttycolors; + +/// Pull in YJIT's symbols for linking the test binary in `make zjit-test`. The test binary builds +/// ZJIT symbols and they should take precendence over the ones built for miniruby, so libminiruby +/// doesn't include any ZJIT code. But, in removing from libminiruby the object which contains all +/// rust code, including ZJIT code, we also remove all YJIT symbols which the rest of libminiruby +/// might request in YJIT+ZJIT configurations. We add back the YJIT symbols here. +/// +/// Only relevant for YJIT+ZJIT configurations, but building YJIT is fast, so always do it for the +/// test binary for simplicity. +#[cfg(test)] +use yjit as _; |
