boost: remove Compiler.cxx_names (#46037)

This commit is contained in:
Massimiliano Culpo 2024-08-30 13:25:40 +02:00 committed by GitHub
parent dd756d53de
commit bf1f4e15ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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