Skip to content

Commit 4c9b1ef

Browse files
josephlrrbradford
authored andcommitted
main, asm: Don't compile asm for tests on the host
The asm files use symbols in layout.ld, which won't exsist when tests are run on the host (as it uses the host's linker script). This isn't an issue for Rust code, as we have LTO enabled. Signed-off-by: Joe Richey <joerichey@google.com>
1 parent 9849d86 commit 4c9b1ef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ mod pci;
3838
mod pe;
3939
mod virtio;
4040

41+
#[cfg(not(test))]
4142
global_asm!(include_str!("asm/ram64.s"));
4243

4344
extern "C" {

0 commit comments

Comments
 (0)