diff --git a/docs/web/release-notes-3.0.13.md b/docs/web/release-notes-3.0.13.md index 00bba79cd..2ea36b545 100644 --- a/docs/web/release-notes-3.0.13.md +++ b/docs/web/release-notes-3.0.13.md @@ -19,6 +19,10 @@ eqnPrefixTemplate: "($$i$$)" # Issues fixed -## Issue #459: [mtest] correct the documentation of `@OutputFrequence` +# Issue 460: [tfel-config] allow to modify the compiler flag associated with the `C++` standard + +For more details, see . + +## Issue 459: [mtest] correct the documentation of `@OutputFrequence` For more details, see . diff --git a/tfel-config/src/tfel-config.cxx b/tfel-config/src/tfel-config.cxx index fcb27a87e..cea1e2a70 100644 --- a/tfel-config/src/tfel-config.cxx +++ b/tfel-config/src/tfel-config.cxx @@ -542,9 +542,15 @@ int main(const int argc, const char* const* const argv) { if (compilerflags) { std::cout << COMPILER_FLAGS << " " << COMPILER_CXXFLAGS << " "; + const auto* const cxx_standard = + getenv("TFEL_CXX_STANDARD_COMPILER_FLAG"); + if (cxx_standard != nullptr) { + std::cout << cxx_standard << " "; + } else { #if (defined __GNUC__) || (defined __clang__) || (defined __INTEL_COMPILER) - std::cout << "-std=c++17 "; + std::cout << "-std=c++20 "; #endif + } } if (debugflags) {