From 1683d5f143155ba8bfb51dba8df8575152fd8b1e Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Wed, 26 Jun 2024 14:56:14 +0200 Subject: [PATCH] make: Canonicalize ORIGIN paths. That path can be relative when the build directory is inside the Proton source directory. Since it then used to patch compile_commands.json, it is important that it is absolute, otherwise it implicitly becomes grafted to a directory for which it is meaningless. --- make/rules-source.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/rules-source.mk b/make/rules-source.mk index f9257df1..70352bac 100644 --- a/make/rules-source.mk +++ b/make/rules-source.mk @@ -15,7 +15,7 @@ # define create-rules-source $(2)_SRC = $$(OBJ)/src-$(1) -$(2)_ORIGIN = $(3) +$(2)_ORIGIN = $(realpath $(3)) $(1)-rebuild: .PHONY: $(1)-rebuild