From 855a34a009e0edf4736c4ccbaaa76e7f356b2bf6 Mon Sep 17 00:00:00 2001 From: Luigi Leonardi Date: Wed, 30 Jul 2025 16:54:46 +0200 Subject: [PATCH] igvm_c/Makefile: fix path for cross compilation When cross-compiling with `CARGO_BUILD_TARGET`, the build output path changes to include the target triple (e.g., `target//release/`). This leads to compilation errors as `TARGET_PATH` does not take that into account. Update `TARGET_PATH` to include the target triple if set. Signed-off-by: Luigi Leonardi --- igvm_c/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/igvm_c/Makefile b/igvm_c/Makefile index a085bb8..ace990e 100644 --- a/igvm_c/Makefile +++ b/igvm_c/Makefile @@ -9,9 +9,9 @@ IGVM_DIR := $(API_DIR)/.. TARGET_DIR ?= target_c ifdef RELEASE -TARGET_PATH="$(IGVM_DIR)/$(TARGET_DIR)/release" +TARGET_PATH="$(IGVM_DIR)/$(TARGET_DIR)/$(CARGO_BUILD_TARGET)/release" else -TARGET_PATH="$(IGVM_DIR)/$(TARGET_DIR)/debug" +TARGET_PATH="$(IGVM_DIR)/$(TARGET_DIR)/$(CARGO_BUILD_TARGET)/debug" endif PREFIX ?= /usr