boost: remove Compiler.cxx_names (#46037)
This commit is contained in:
parent
dd756d53de
commit
bf1f4e15ee
@ -462,24 +462,24 @@ def flag_handler(self, name, flags):
|
||||
|
||||
def determine_toolset(self, spec):
|
||||
toolsets = {
|
||||
"g++": "gcc",
|
||||
"icpc": "intel",
|
||||
"icpx": "intel",
|
||||
"clang++": "clang",
|
||||
"armclang++": "clang",
|
||||
"xlc++": "xlcpp",
|
||||
"xlc++_r": "xlcpp",
|
||||
"pgc++": "pgi",
|
||||
"nvc++": "pgi",
|
||||
"FCC": "clang",
|
||||
"%gcc": "gcc",
|
||||
"%intel": "intel",
|
||||
"%oneapi": "intel",
|
||||
"%clang": "clang",
|
||||
"%arm": "clang",
|
||||
"%xl": "xlcpp",
|
||||
"%xl_r": "xlcpp",
|
||||
"%pgi": "pgi",
|
||||
"%nvhpc": "pgi",
|
||||
"%fj": "clang",
|
||||
}
|
||||
|
||||
if spec.satisfies("@1.47:"):
|
||||
toolsets["icpc"] += "-linux"
|
||||
toolsets["icpx"] += "-linux"
|
||||
toolsets["%intel"] += "-linux"
|
||||
toolsets["%oneapi"] += "-linux"
|
||||
|
||||
for cc, toolset in toolsets.items():
|
||||
if cc in self.compiler.cxx_names:
|
||||
if self.spec.satisfies(cc):
|
||||
return toolset
|
||||
|
||||
# fallback to gcc if no toolset found
|
||||
|
Loading…
Reference in New Issue
Block a user