Skip to content

Commit

Permalink
Fix Issue thelfer#460
Browse files Browse the repository at this point in the history
  • Loading branch information
thelfer committed Dec 8, 2023
1 parent d6556ae commit 0faf292
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/web/release-notes-3.0.13.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/thelfer/tfel/issues/460>.

## Issue 459: [mtest] correct the documentation of `@OutputFrequence`

For more details, see <https://github.com/thelfer/tfel/issues/459>.
8 changes: 7 additions & 1 deletion tfel-config/src/tfel-config.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0faf292

Please sign in to comment.