From 4944bbd7ae604d82e48c5f894abe89e67b5d20f5 Mon Sep 17 00:00:00 2001 From: Connor Baker Date: Wed, 26 Nov 2025 01:29:45 +0000 Subject: [PATCH] cudaPackages.buildRedist: check stubs output for removeStubsFromRunpathHook Signed-off-by: Connor Baker --- pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash b/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash index afd838df4e31..2a2ca6d257a4 100644 --- a/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash +++ b/pkgs/development/cuda-modules/buildRedist/buildRedistHook.bash @@ -157,7 +157,8 @@ checkCudaHasStubsIffIncludeRemoveStubsFromRunpathHook() { for outputName in $(getAllOutputNames); do hasStubs=0 - if find "${!outputName:?}" -mindepth 1 -type d -name stubs -print -quit | grep --silent .; then + if [[ $outputName == "stubs" ]] || + find "${!outputName:?}" -mindepth 1 -type d -name stubs -print -quit | grep --silent .; then hasStubs=1 fi