diff --git a/arm-software/embedded/arm-runtimes/CMakeLists.txt b/arm-software/embedded/arm-runtimes/CMakeLists.txt index 7a254b8721f8..e6faff9a23c5 100644 --- a/arm-software/embedded/arm-runtimes/CMakeLists.txt +++ b/arm-software/embedded/arm-runtimes/CMakeLists.txt @@ -858,7 +858,6 @@ if(ENABLE_CXX_LIBS) -DLIBCXX_ENABLE_THREADS=OFF -DLIBCXX_ENABLE_WIDE_CHARACTERS=OFF -DLIBCXX_ENABLE_FILESYSTEM=OFF - -DLIBCXX_ENABLE_LOCALIZATION=OFF -DLIBCXX_ENABLE_UNICODE=OFF -DLIBUNWIND_ENABLE_THREADS=OFF -DLIBCXXABI_ENABLE_EXCEPTIONS=${ENABLE_EXCEPTIONS} diff --git a/arm-software/embedded/llvmlibc-samples/src/cpp-baremetal-semihosting-llvmlibc/hello.cpp b/arm-software/embedded/llvmlibc-samples/src/cpp-baremetal-semihosting-llvmlibc/hello.cpp index a252a7d7fe70..66e0c4158bec 100644 --- a/arm-software/embedded/llvmlibc-samples/src/cpp-baremetal-semihosting-llvmlibc/hello.cpp +++ b/arm-software/embedded/llvmlibc-samples/src/cpp-baremetal-semihosting-llvmlibc/hello.cpp @@ -4,7 +4,8 @@ // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception -#include // iostream is not supported yet +#include +#include #include int test_exceptions(int i) @@ -30,7 +31,7 @@ int main(void) { try { int result = test_exceptions(0); } catch (...) { - std::puts("Exception caught."); + std::cout << "Exception caught." << std::endl; } return 0; }