MFEM: fix issue with cxxflags (#34435)

This commit is contained in:
Veselin Dobrev 2022-12-12 07:52:00 -08:00 committed by GitHub
parent b6d6a1ab2c
commit fcdd275564
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -601,7 +601,7 @@ def find_optional_library(name, prefix):
else:
cxxstd_flag = getattr(self.compiler, "cxx" + cxxstd + "_flag")
cxxflags = spec.compiler_flags["cxxflags"]
cxxflags = spec.compiler_flags["cxxflags"].copy()
if cxxflags:
# Add opt/debug flags if they are not present in global cxx flags
@ -1116,7 +1116,7 @@ def patch(self):
"miniapps/gslib/findpts.cpp",
"miniapps/gslib/pfindpts.cpp",
]
bom = "\xef\xbb\xbf" if sys.version_info < (3,) else u"\ufeff"
bom = "\xef\xbb\xbf" if sys.version_info < (3,) else "\ufeff"
for f in files_with_bom:
filter_file(bom, "", f)