hip: shorten shebang before cmake phase because it is used there (#22391)
This commit is contained in:
parent
07a9723c63
commit
ece71f1648
@ -4,6 +4,7 @@
|
|||||||
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
|
||||||
|
|
||||||
from spack.util.prefix import Prefix
|
from spack.util.prefix import Prefix
|
||||||
|
from spack.hooks.sbang import filter_shebang
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
@ -190,6 +191,10 @@ def patch(self):
|
|||||||
]
|
]
|
||||||
filter_file(match, substitute, *files, **kwargs)
|
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:
|
if '@3.7.0:' in self.spec:
|
||||||
numactl = self.spec['numactl'].prefix.lib
|
numactl = self.spec['numactl'].prefix.lib
|
||||||
kwargs = {'ignore_absent': False, 'backup': False, 'string': False}
|
kwargs = {'ignore_absent': False, 'backup': False, 'string': False}
|
||||||
|
Loading…
Reference in New Issue
Block a user