diff --git a/flang/runtime/CMakeLists.txt b/flang/runtime/CMakeLists.txt --- a/flang/runtime/CMakeLists.txt +++ b/flang/runtime/CMakeLists.txt @@ -86,9 +86,10 @@ append(${NO_LTO_FLAGS} CMAKE_C_FLAGS) append(${NO_LTO_FLAGS} CMAKE_CXX_FLAGS) -# Disable libstdc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build, to -# avoid an unwanted dependency on libstdc++.so. +# Disable libstdc++/libc++ assertions, even in an LLVM_ENABLE_ASSERTIONS build, +# to avoid an unwanted dependency on libstdc++/libc++.so. add_definitions(-U_GLIBCXX_ASSERTIONS) +add_definitions(-U_LIBCPP_ENABLE_ASSERTIONS) add_subdirectory(FortranMain)