ZJIT: Only build the assembler for target_arch

Fixes test error from running the ARM assembler on x86, but then trying
to disassemble it as x86.
This commit is contained in:
Alan Wu 2025-07-30 19:57:55 -04:00
parent dd352461da
commit 214d587a77

View file

@ -7,7 +7,9 @@ use crate::virtualmem::*;
// Lots of manual vertical alignment in there that rustfmt doesn't handle well.
#[rustfmt::skip]
#[cfg(target_arch = "x86_64")]
pub mod x86_64;
#[cfg(target_arch = "aarch64")]
pub mod arm64;
/// Index to a label created by cb.new_label()