build: fix build

This commit is contained in:
Loïc Grégoire
2026-03-28 14:52:30 -04:00
parent 5fe832d412
commit 9b6d38bbcc
4 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -89,7 +89,7 @@ pub fn getPlatform(config: Config) !Platform {
return error.NoArchConfigured;
};
if (ret.arch == .x86_64 or ret.arch == .aarch64) {
if (ret.os == .freestanding and (ret.arch == .x86_64 or ret.arch == .aarch64)) {
ret.bootloader = blk: {
if (config.get("CONFIG_BOOT_LIMINE")) |val| {
if (std.mem.eql(u8, val, "y")) break :blk .Limine;