Skip to content

Commit 43be2f0

Browse files
RoyLinRoyLin
authored andcommitted
fix(build): only build libkrun package, not entire workspace
The workspace includes libkrunfw-win which is Windows-specific and requires kernel/vmlinux that doesn't exist on Linux. This change builds only the libkrun package instead of the entire workspace, avoiding the Windows-only crates on Linux builds. Fixes Linux build failure when building libkrun on non-Windows platforms.
1 parent b40dd08 commit 43be2f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ clean-sysroot:
175175

176176

177177
$(LIBRARY_RELEASE_$(OS)): $(INIT_BINARY)
178-
cargo build --release $(FEATURE_FLAGS)
178+
cargo build -p libkrun --release $(FEATURE_FLAGS)
179179
ifeq ($(SEV),1)
180180
mv target/release/libkrun.so target/release/$(KRUN_BASE_$(OS))
181181
endif
@@ -194,7 +194,7 @@ endif
194194
cp target/release/$(KRUN_BASE_$(OS)) $(LIBRARY_RELEASE_$(OS))
195195

196196
$(LIBRARY_DEBUG_$(OS)): $(INIT_BINARY)
197-
cargo build $(FEATURE_FLAGS)
197+
cargo build -p libkrun $(FEATURE_FLAGS)
198198
ifeq ($(SEV),1)
199199
mv target/debug/libkrun.so target/debug/$(KRUN_BASE_$(OS))
200200
endif

0 commit comments

Comments
 (0)