From 4cb9d80396f727bacff1dc41fefaa2df18197a8b Mon Sep 17 00:00:00 2001 From: Red Bear OS Date: Sun, 28 Jun 2026 02:36:08 +0300 Subject: [PATCH] Add -Z json-target-spec for newer Rust nightly compatibility --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 68a8c50ae5..1c658da303 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ $(BUILD)/kernel.all: $(LD_SCRIPT) $(LOCKFILE) $(MANIFEST) $(TARGET_SPEC) $(shell --manifest-path "$(MANIFEST)" \ --target "$(TARGET_SPEC)" \ --release \ - -Z build-std=core,alloc -Zbuild-std-features=compiler-builtins-mem \ + -Z build-std=core,alloc -Zbuild-std-features=compiler-builtins-mem -Z json-target-spec \ --features=$(KERNEL_CARGO_FEATURES) \ -- \ -C link-arg=-T -Clink-arg="$(LD_SCRIPT)" \ @@ -62,5 +62,5 @@ check: --bin kernel \ --manifest-path "$(MANIFEST)" \ --target "$(TARGET_SPEC)" \ - -Z build-std=core,alloc -Zbuild-std-features=compiler-builtins-mem \ + -Z build-std=core,alloc -Zbuild-std-features=compiler-builtins-mem -Z json-target-spec \ --features=$(KERNEL_CHECK_FEATURES)