From d55d71059f7040f2874bbef9e310179d638da4b9 Mon Sep 17 00:00:00 2001 From: pantonshire Date: Sun, 25 Aug 2024 11:19:07 +0100 Subject: [PATCH] build asm with werror --- boot1/asm/prelude.s | 3 ++- boot1/build.rs | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/boot1/asm/prelude.s b/boot1/asm/prelude.s index 04b2e71..b167a28 100644 --- a/boot1/asm/prelude.s +++ b/boot1/asm/prelude.s @@ -3,4 +3,5 @@ [org BOOT1_LOADPOINT] [bits 16] -hlt +prelude: + hlt diff --git a/boot1/build.rs b/boot1/build.rs index d9b35c9..72ddaad 100644 --- a/boot1/build.rs +++ b/boot1/build.rs @@ -56,7 +56,10 @@ impl Nasm { } let mut cmd = Command::new(&self.bin_path); - cmd.arg("-f").arg("bin"); + cmd + .arg("-f") + .arg("bin") + .arg("-Werror"); for include in includes { let mut buf = OsString::new();