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.
This commit is contained in:
Giovanni Mascellani 2024-06-26 14:56:14 +02:00 committed by Arkadiusz Hiler
parent 3ffb520d58
commit 1683d5f143

View file

@ -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