MFEM: fix issue with cxxflags (#34435)
This commit is contained in:
parent
b6d6a1ab2c
commit
fcdd275564
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user