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 Harmen Stoppels
parent 271106e5dd
commit 243ee7203a
2 changed files with 4 additions and 4 deletions

View File

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

View File

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