lastz: set compile commands for each compiler (#15284)

This commit is contained in:
noguchi-k 2020-03-02 23:05:31 +09:00 committed by GitHub
parent c0032a3660
commit aae59f4866
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,5 +17,9 @@ class Lastz(MakefilePackage):
# cast from char to signed char # cast from char to signed char
patch('cast_signed_char.patch') patch('cast_signed_char.patch')
# set compile commands for each compiler
def edit(self, spec, prefix):
filter_file('gcc', spack_cc, 'src/Makefile')
def install(self, spec, prefix): def install(self, spec, prefix):
make('install', 'LASTZ_INSTALL={0}'.format(prefix.bin)) make('install', 'LASTZ_INSTALL={0}'.format(prefix.bin))