Windows support: correct 64-bit check (#36578)

This commit is contained in:
John W. Parent 2023-04-07 19:50:54 -04:00 committed by GitHub
parent 65ee864232
commit 9d7b79d8e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 6 additions and 6 deletions

View File

@ -70,7 +70,7 @@ def plat_arch(self):
return arch
def is_64bit(self):
return "64" in self.pkg.spec.target.family
return "64" in str(self.pkg.spec.target.family)
def build(self, spec, prefix):
link_type = "1" if "static" in spec.variants["link_type"].value else "0"

View File

@ -39,7 +39,7 @@ class GenericBuilder(GenericBuilder):
phases = ["build", "install"]
def is_64bit(self):
return "64" in self.pkg.spec.target.family
return "64" in str(self.pkg.spec.target.family)
def build(self, spec, prefix):
if spec.satisfies("%msvc"):

View File

@ -69,7 +69,7 @@ def autoreconf(self, pkg, spec, prefix):
class MSBuildBuilder(MSBuildBuilder):
def is_64bit(self):
return "64" in self.pkg.spec.target.family
return "64" in str(self.pkg.spec.target.family)
def setup_build_environment(self, env):
spec = self.pkg.spec

View File

@ -57,7 +57,7 @@ def setup_build_environment(self, env):
env.set("SPACK_IFORT", ifort_root)
def is_64bit(self):
return "64" in self.pkg.spec.target.family
return "64" in str(self.pkg.spec.target.family)
def build_command_line(self):
args = ["-noLogo"]

View File

@ -230,7 +230,7 @@ def nmake_arguments(self):
return args
def is_64bit(self):
return "64" in self.pkg.spec.target.family
return "64" in str(self.pkg.spec.target.family)
def configure_args(self):
spec = self.spec

View File

@ -97,7 +97,7 @@ def get_file_string_number(f):
return os.path.join(win_dir, newest_compiler)
def is_64bit(self):
return "64" in self.pkg.spec.target.family
return "64" in str(self.pkg.spec.target.family)
def msbuild_args(self):
plat = "x64" if self.is_64bit() else "x86"