Fix errors found by running spack audit externals (#47308)

The problem was that `+` is part of the regex grammar, so it needs to be
escaped.
This commit is contained in:
Alex Hedges
2024-10-30 04:38:36 -04:00
committed by GitHub
parent 44d09f2b2b
commit 8a10eff757
2 changed files with 4 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ paths:
extra_attributes:
compilers:
c: ".*/bin/gcc"
cxx: ".*/bin/g++"
cxx: ".*/bin/g\\+\\+"
# Mock a version < 7 of GCC that requires -dumpversion and
# errors with -dumpfullversion

View File

@@ -24,7 +24,7 @@ paths:
extra_attributes:
compilers:
c: ".*/bin/nvc"
cxx: ".*/bin/nvc++"
cxx: ".*/bin/nvc\\+\\+"
fortran: ".*/bin/nvfortran"
- layout:
- executables:
@@ -51,7 +51,7 @@ paths:
extra_attributes:
compilers:
c: ".*/bin/nvc"
cxx: ".*/bin/nvc++"
cxx: ".*/bin/nvc\\+\\+"
fortran: ".*/bin/nvfortran"
- layout:
- executables:
@@ -78,5 +78,5 @@ paths:
extra_attributes:
compilers:
c: ".*/bin/nvc"
cxx: ".*/bin/nvc++"
cxx: ".*/bin/nvc\\+\\+"
fortran: ".*/bin/nvfortran"