zlib package: fix build on Windows (#35103)
This commit is contained in:
parent
defa4a2340
commit
7d50680d9c
@ -116,9 +116,9 @@ def edit(self, pkg, spec, prefix):
|
|||||||
|
|
||||||
|
|
||||||
class GenericBuilder(spack.build_systems.generic.GenericBuilder, SetupEnvironment):
|
class GenericBuilder(spack.build_systems.generic.GenericBuilder, SetupEnvironment):
|
||||||
def install(self, spec, prefix):
|
def install(self, pkg, spec, prefix):
|
||||||
nmake("-f" "win32\\Makefile.msc")
|
nmake("-f" "win32\\Makefile.msc")
|
||||||
build_dir = self.pkg.stage.source_path
|
build_dir = pkg.stage.source_path
|
||||||
install_tree = {
|
install_tree = {
|
||||||
"bin": glob.glob(os.path.join(build_dir, "*.dll")),
|
"bin": glob.glob(os.path.join(build_dir, "*.dll")),
|
||||||
"lib": glob.glob(os.path.join(build_dir, "*.lib")),
|
"lib": glob.glob(os.path.join(build_dir, "*.lib")),
|
||||||
@ -138,4 +138,4 @@ def installtree(dst, tree):
|
|||||||
for file in tree[inst_dir]:
|
for file in tree[inst_dir]:
|
||||||
install(file, install_dst)
|
install(file, install_dst)
|
||||||
|
|
||||||
installtree(self.prefix, install_tree)
|
installtree(prefix, install_tree)
|
||||||
|
Loading…
Reference in New Issue
Block a user