Windows support: correct 64-bit check (#36578)
This commit is contained in:
parent
65ee864232
commit
9d7b79d8e1
@ -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"
|
||||
|
@ -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"):
|
||||
|
@ -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
|
||||
|
@ -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"]
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user