diff options
author | Veselin Dobrev <v-dobrev@users.noreply.github.com> | 2022-12-12 07:52:00 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-12 16:52:00 +0100 |
commit | fcdd2755641119c4fa778e10096f49a7d26a2909 (patch) | |
tree | 24dd30402661709c60003e02f5efe35402dd3539 | |
parent | b6d6a1ab2c023a8e43d6a580633d4b9e478a078c (diff) | |
download | spack-fcdd2755641119c4fa778e10096f49a7d26a2909.tar.gz spack-fcdd2755641119c4fa778e10096f49a7d26a2909.tar.bz2 spack-fcdd2755641119c4fa778e10096f49a7d26a2909.tar.xz spack-fcdd2755641119c4fa778e10096f49a7d26a2909.zip |
MFEM: fix issue with cxxflags (#34435)
-rw-r--r-- | var/spack/repos/builtin/packages/mfem/package.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/mfem/package.py b/var/spack/repos/builtin/packages/mfem/package.py index 667d07efe4..2b74a15487 100644 --- a/var/spack/repos/builtin/packages/mfem/package.py +++ b/var/spack/repos/builtin/packages/mfem/package.py @@ -601,7 +601,7 @@ class Mfem(Package, CudaPackage, ROCmPackage): 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 @@ class Mfem(Package, CudaPackage, ROCmPackage): "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) |