From ac5e494c51b9e9ecfa16a12bce739a83e18e84c8 Mon Sep 17 00:00:00 2001 From: Daniele Massaro Date: Wed, 15 Apr 2026 11:48:56 +0200 Subject: [PATCH] Fix cppauto backend detection using echo instead of file The `file` function used may not be available, use the well known echo --- .../madgraph/iolibs/template_files/gpu/cudacpp.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/cudacpp.mk b/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/cudacpp.mk index 583f3df0c9..78188d3f83 100644 --- a/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/cudacpp.mk +++ b/epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT/madgraph/iolibs/template_files/gpu/cudacpp.mk @@ -89,7 +89,7 @@ endif # Create file with the resolved backend in case user chooses 'cppauto' BACKEND_LOG ?= .resolved-backend ifneq ($(BACKEND_ORIG),$(BACKEND)) - $(file >$(BACKEND_LOG),$(BACKEND)) + $(shell echo '$(BACKEND)' > $(BACKEND_LOG)) endif #-------------------------------------------------------------------------------