hip: shorten shebang before cmake phase because it is used there (#22391)

This commit is contained in:
Harmen Stoppels
2021-03-20 09:52:22 +01:00
committed by GitHub
parent 07a9723c63
commit ece71f1648

View File

@@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.util.prefix import Prefix
from spack.hooks.sbang import filter_shebang
import os
@@ -190,6 +191,10 @@ def patch(self):
]
filter_file(match, substitute, *files, **kwargs)
# This guy is used during the cmake phase, so we have to fix the
# shebang already here in case it is too long.
filter_shebang('hipconfig')
if '@3.7.0:' in self.spec:
numactl = self.spec['numactl'].prefix.lib
kwargs = {'ignore_absent': False, 'backup': False, 'string': False}