From 9ac01bbc74720cccef6cc5fe1fad5cf05889c211 Mon Sep 17 00:00:00 2001 From: Michael Platings Date: Tue, 25 Jul 2023 16:23:57 +0100 Subject: [PATCH] Fix compiler-rt tests Since the .cfg files were removed, the compiler-rt tests have been failing. This change fixes the flags passed to those tests. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 67390898..ea3aaff0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -579,7 +579,7 @@ Hard-float library with target triple \"${target_triple}\" must end \"-eabihf\"" get_runtimes_flags("${directory}" "${flags}") - set(compiler_rt_test_flags "--target=${target_triple} -fno-exceptions -fno-rtti -lcrt0-semihost -lsemihost -T picolibcpp.ld") + set(compiler_rt_test_flags "${runtimes_flags} -fno-exceptions -fno-rtti -lcrt0-semihost -lsemihost -T picolibcpp.ld") if(variant STREQUAL "armv6m_soft_nofp") set(compiler_rt_test_flags "${compiler_rt_test_flags} -fomit-frame-pointer") endif()