Remove unnecessary compiler id override for XL (#24799)

This commit is contained in:
Chris White 2021-07-09 09:20:54 -07:00 committed by GitHub
parent b4e757dc35
commit 4037a94d1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,21 +108,6 @@ def initconfig_compiler_entries(self):
if fflags:
entries.append(cmake_cache_string("CMAKE_Fortran_FLAGS", fflags))
# Override XL compiler family
familymsg = ("Override to proper compiler family for XL")
if "xlf" in (self.compiler.fc or ''): # noqa: F821
entries.append(cmake_cache_string(
"CMAKE_Fortran_COMPILER_ID", "XL",
familymsg))
if "xlc" in self.compiler.cc: # noqa: F821
entries.append(cmake_cache_string(
"CMAKE_C_COMPILER_ID", "XL",
familymsg))
if "xlC" in self.compiler.cxx: # noqa: F821
entries.append(cmake_cache_string(
"CMAKE_CXX_COMPILER_ID", "XL",
familymsg))
return entries
def initconfig_mpi_entries(self):