Passing full arch for proper compiler spec so that we can use the platform to get the operating system
This commit is contained in:
parent
f751d68177
commit
c7b48f6fef
@ -280,10 +280,12 @@ def concretize_compiler(self, spec):
|
||||
# Only use a matching compiler if it is of the proper style
|
||||
# Takes advantage of the proper logic already existing in compiler_for_spec
|
||||
# Should think whether this can be more efficient
|
||||
def _proper_compiler_style(cspec, architecture):
|
||||
compilers = spack.compilers.compilers_for_spec(cspec)
|
||||
def _proper_compiler_style(cspec, arch):
|
||||
platform = arch.platform
|
||||
compilers = spack.compilers.compilers_for_spec(cspec,
|
||||
platform=platform)
|
||||
return filter(lambda c: c.operating_system ==
|
||||
architecture.platform_os, compilers)
|
||||
arch.platform_os, compilers)
|
||||
#return compilers
|
||||
|
||||
|
||||
@ -368,7 +370,7 @@ def concretize_compiler_flags(self, spec):
|
||||
# Include the compiler flag defaults from the config files
|
||||
# This ensures that spack will detect conflicts that stem from a change
|
||||
# in default compiler flags.
|
||||
compiler = spack.compilers.compiler_for_spec(spec.compiler, spec.architecture.platform_os)
|
||||
compiler = spack.compilers.compiler_for_spec(spec.compiler, spec.architecture)
|
||||
for flag in compiler.flags:
|
||||
if flag not in spec.compiler_flags:
|
||||
spec.compiler_flags[flag] = compiler.flags[flag]
|
||||
|
Loading…
Reference in New Issue
Block a user