🐛 Configure QEMU on Linux's dist tree, dist-vulkan

On Linux cargo xtask dist builds the library on Vulkan, the one platform
Linux builds, into <target>/dist-vulkan. make qemu pointed QEMU's
PKG_CONFIG_PATH at <target>/dist, where nothing is written on Linux, so
configure found no reims-vgpu.pc and stopped at --enable-reims-vgpu. Linux
is now the only host that runs VMs. The dist tree is picked by the host's OS:
dist on a Mac, dist-vulkan on Linux.
This commit is contained in:
Anees Iqbal committed 2026-11-07 19:45:50 -08:00
1 parent 533e26d043
commit 0bf98dce2f
1 file changed
+7 -4
+7 -4
View File
@@ -1,9 +1,10 @@
# The Rust library and its tooling. The Cargo workspace is at the
# repository root.
#
# make the library as a plain library (cargo xtask dist) in
# target/dist: libreims_vgpu.a and .dylib, reims_vgpu.h and
# reims-vgpu.pc
# make the library as a plain library (cargo xtask dist) in its dist
# tree: on a Mac, on Metal, target/dist (libreims_vgpu.a and
# .dylib); on Linux, on Vulkan, target/dist-vulkan
# (libreims_vgpu.a and .so); with reims_vgpu.h and reims-vgpu.pc
# make qemu the library as a plain library (cargo xtask dist), then
# vendor/qemu's qemu-system-x86_64 with reims-graphics-pci on
# its C API, linked statically through pkg-config, in
@@ -24,7 +25,9 @@ QEMU_SRC := $(CURDIR)/vendor/qemu
# relative one against the directory it runs in.
RUST_TARGET_REL := $(or $(CARGO_TARGET_DIR),target)
RUST_TARGET := $(if $(filter /%,$(RUST_TARGET_REL)),$(RUST_TARGET_REL),$(CURDIR)/$(RUST_TARGET_REL))
RUST_DIST := $(RUST_TARGET)/dist
# The dist tree cargo xtask dist writes on the host's platform: Metal's on a
# Mac, Vulkan's on Linux, the only one Linux builds (xtask/src/dist.rs).
RUST_DIST := $(RUST_TARGET)/$(if $(filter Linux,$(shell uname -s)),dist-vulkan,dist)
.PHONY: all qemu clean