Skip to content

Commit

Permalink
Finalize xz
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwparent committed Oct 27, 2022
1 parent b80928a commit 6b91bf7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions var/spack/repos/builtin/packages/xz/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def darwin_fix(self):

@when("platform=windows")
def configure(self, spec, prefix):
"""No need for this step on Windows"""
pass

@when("platform=windows")
Expand All @@ -87,13 +88,13 @@ def get_file_string_number(f):
compiler_dirs.append(obj.name)
newest_compiler = max(compiler_dirs, key=get_file_string_number)
with working_dir(newest_compiler):
msbuild()
msbuild("/p:PlatformToolset=v%s" % self.compiler.msvc_version)
else:
msbuild()
msbuild("/p:PlatformToolset=v%s" % self.compiler.msvc_version)

@when("platform=windows")
def install(self, spec, prefix):
pass
msbuild("/p:PlatformToolset=v%s" % self.compiler.msvc_version, "/target:INSTALL")

def configure(self, spec, prefix):
options += ["--prefix={0}".format(prefix)]
Expand Down

0 comments on commit 6b91bf7

Please sign in to comment.