[flang-commits] [PATCH] D115735: [flang] Make f18 build with GCC 11.2.0 and with --std=c++20

Diana Picus via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Dec 15 03:55:05 PST 2021


rovka accepted this revision.
rovka added a comment.
This revision is now accepted and ready to land.

Seems fine.



================
Comment at: flang/CMakeLists.txt:113
     message("LLVM configuration set a C++ standard: ${LLVM_CXX_STD}")
-    if (NOT LLVM_CXX_STD EQUAL "c++17")
+    if (NOT LLVM_CXX_STD EQUAL "c++17" AND NOT LLVM_CXX_STD EQUAL "c++20")
       message("Flang: Overriding LLVM's 'cxx_std' setting...")
----------------
Nit: How about if (NOT LLVM_CXX_STD EQUAL CMAKE_CXX_STANDARD)?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115735/new/

https://reviews.llvm.org/D115735



More information about the flang-commits mailing list