rpcsvc-proto: point to compiler-wrapper, instead of Spack dir

https://gitlab.spack.io/spack/spack/-/jobs/15003090
This commit is contained in:
Massimiliano Culpo 2025-02-08 08:46:09 +01:00
parent d4b5eb2be6
commit 660fff39eb
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -2,7 +2,6 @@
# #
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
import spack.paths
from spack.package import * from spack.package import *
@ -35,6 +34,6 @@ def change_makefile(self):
# Add 'cpp' path for rpcgen # Add 'cpp' path for rpcgen
filter_file( filter_file(
"rpcgen/rpcgen", "rpcgen/rpcgen",
f"rpcgen/rpcgen -Y {spack.paths.spack_root}/lib/spack/env", f"rpcgen/rpcgen -Y {self['compiler-wrapper'].bin_dir()}",
"rpcsvc/Makefile", "rpcsvc/Makefile",
) )