Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit e198a2e

Browse files
committed
[Weekly]: Merge from branch main of upstream
1 parent 7697475 commit e198a2e

9 files changed

+24
-15
lines changed

CMakeLists.txt

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ endif()
284284
# The patches are generated from custom branch, with followin command:
285285
# git format-patch -k origin/main
286286
# The patches apply cleanly against llvm-project commit
287-
# ed551e0778a35f00ab60f1c80d83ea8274d8d400.
287+
# 327124ece7d59de56ca0f9faa2cd82af68c011b9.
288288
set(
289289
llvm_project_patches
290290
${CMAKE_CURRENT_SOURCE_DIR}/patches/llvm-project/0001-libc-tests-with-picolibc-xfail-one-remaining-test.patch
@@ -333,18 +333,24 @@ if(NOT (LLVM_TOOLCHAIN_C_LIBRARY STREQUAL llvmlibc)) # libc in a separate repo?
333333
FetchContent_MakeAvailable(${LLVM_TOOLCHAIN_C_LIBRARY})
334334
endif()
335335

336+
##################################################################################################
337+
# We set all project properties later, this call is just to enable the
338+
# CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT check
339+
project(LLVMEmbeddedToolchainForArm)
336340
# We generally want to install to a local directory to see what the
337341
# output will look like rather than install into the system, so change
338342
# the default accordingly.
339343
# See https://cmake.org/cmake/help/latest/variable/CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT.html
340-
# Note that this code only works after the first call to project so it
341-
# can't be moved after the add_subdirectory command below.
344+
# Note that THIS CODE ONLY WORKS AFTER THE FIRST CALL TO PROJECT so it
345+
# can't be moved after the add_subdirectory(<llvm>) command below as it will be too late -
346+
# the llvm project will set it to the default system install directory.
342347
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
343348
set(CMAKE_INSTALL_PREFIX
344349
"${CMAKE_BINARY_DIR}/install"
345350
CACHE PATH "" FORCE
346351
)
347352
endif()
353+
##################################################################################################
348354

349355
# Whether to try to build C++ libraries. (We can't currently do this
350356
# for all choices of C library.)
@@ -1245,6 +1251,7 @@ function(
12451251
-DLIBCXXABI_USE_COMPILER_RT=ON
12461252
-DLIBCXXABI_USE_LLVM_UNWINDER=ON
12471253
-DLIBCXXABI_TEST_PARAMS=executor=${test_executor}
1254+
-DLIBCXXABI_SHARED_OUTPUT_NAME="c++abi-shared"
12481255
-DLIBCXX_ABI_UNSTABLE=ON
12491256
-DLIBCXX_CXX_ABI=libcxxabi
12501257
-DLIBCXX_STATICALLY_LINK_ABI_IN_STATIC_LIBRARY=ON
@@ -1253,12 +1260,14 @@ function(
12531260
-DLIBCXX_ENABLE_STATIC=ON
12541261
-DLIBCXX_INCLUDE_BENCHMARKS=OFF
12551262
-DLIBCXX_TEST_PARAMS=executor=${test_executor}
1263+
-DLIBCXX_SHARED_OUTPUT_NAME="c++-shared"
12561264
-DLIBUNWIND_ENABLE_SHARED=OFF
12571265
-DLIBUNWIND_ENABLE_STATIC=ON
12581266
-DLIBUNWIND_IS_BAREMETAL=ON
12591267
-DLIBUNWIND_REMEMBER_HEAP_ALLOC=ON
12601268
-DLIBUNWIND_USE_COMPILER_RT=ON
12611269
-DLIBUNWIND_TEST_PARAMS=executor=${test_executor}
1270+
-DLIBUNWIND_SHARED_OUTPUT_NAME="unwind-shared"
12621271
-DLLVM_LIT_ARGS=${LLVM_LIT_ARGS}
12631272
-DLLVM_ENABLE_RUNTIMES=libcxxabi,libcxx,libunwind
12641273
-DRUNTIME_TEST_ARCH_FLAGS=${flags}
@@ -1520,7 +1529,7 @@ function(add_nonexistent_library_variant)
15201529
)
15211530
cmake_parse_arguments(ERR "" "${one_value_args}" "" ${ARGN})
15221531

1523-
string(APPEND multilib_yaml_content "- FatalError: \"${ERR_ERROR_MESSAGE}\"\n")
1532+
string(APPEND multilib_yaml_content "- Error: \"${ERR_ERROR_MESSAGE}\"\n")
15241533

15251534
string(APPEND multilib_yaml_content " Flags:\n")
15261535
string(REPLACE " " ";" multilib_flags_list ${ERR_MULTILIB_FLAGS})

docs/Screenshot_L4R5.png

32 Bytes
Loading

docs/Screenshot_U5A9.png

328 Bytes
Loading

patches/llvm-project/0001-libc-tests-with-picolibc-xfail-one-remaining-test.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From fd26b5fd6a882677062a7c495660f22ca2b13cd5 Mon Sep 17 00:00:00 2001
1+
From 623881f1ea465f9c1837981db143f7225108580a Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Dominik=20W=C3=B3jt?= <[email protected]>
33
Date: Mon, 16 Oct 2023 11:35:48 +0200
44
Subject: [libc++] tests with picolibc: xfail one remaining test

patches/llvm-project/0002-libc-tests-with-picolibc-disable-large-tests.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 02175d0f237e5d14c6b59ce6b16818927f10368f Mon Sep 17 00:00:00 2001
1+
From 8a0f8650d58f27ca32948554188b98c8978d1eb6 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Dominik=20W=C3=B3jt?= <[email protected]>
33
Date: Wed, 15 Nov 2023 12:18:35 +0100
44
Subject: [libc++] tests with picolibc: disable large tests
@@ -41,7 +41,7 @@ index b5f9089308d2..0a83e75ceceb 100644
4141
set(LIBUNWIND_USE_COMPILER_RT ON CACHE BOOL "")
4242
find_program(QEMU_SYSTEM_ARM qemu-system-arm REQUIRED)
4343
diff --git a/libcxxabi/test/test_demangle.pass.cpp b/libcxxabi/test/test_demangle.pass.cpp
44-
index 77f79e0d40e8..4b69df08ea28 100644
44+
index ad131bb3a8a7..ac612c79f71c 100644
4545
--- a/libcxxabi/test/test_demangle.pass.cpp
4646
+++ b/libcxxabi/test/test_demangle.pass.cpp
4747
@@ -7,7 +7,7 @@
@@ -51,8 +51,8 @@ index 77f79e0d40e8..4b69df08ea28 100644
5151
-// XFAIL: LIBCXX-PICOLIBC-FIXME
5252
+// REQUIRES: large_tests
5353

54-
// https://llvm.org/PR51407 was not fixed in some previously-released
55-
// demanglers, which causes them to run into the infinite loop.
54+
// This test exercises support for char array initializer lists added in dd8b266ef.
55+
// UNSUPPORTED: using-built-library-before-llvm-20
5656
--
5757
2.39.5 (Apple Git-154)
5858

patches/llvm-project/0003-Disable-failing-compiler-rt-test.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From d1d619643bedea5759ef56ed42c4d97846f3c789 Mon Sep 17 00:00:00 2001
1+
From 0f8dc80a7642430c8d02c36283766aeb5a59a331 Mon Sep 17 00:00:00 2001
22
From: Piotr Przybyla <[email protected]>
33
Date: Wed, 15 Nov 2023 16:04:24 +0000
44
Subject: Disable failing compiler-rt test

patches/llvm-project/0004-libc-tests-with-picolibc-XFAIL-uses-of-atomics.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 46019866b66f8859e7dff666c519c35d5b921291 Mon Sep 17 00:00:00 2001
1+
From f5b5a95bd02f6d5bc6e80c238c2e8f7e08985d80 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Dominik=20W=C3=B3jt?= <[email protected]>
33
Date: Thu, 9 Nov 2023 15:25:14 +0100
44
Subject: [libc++] tests with picolibc: XFAIL uses of atomics
@@ -88,7 +88,7 @@ index 000000000000..5ecc58f3e385
8888
+if "has-no-atomics" in config.available_features:
8989
+ config.unsupported = True
9090
diff --git a/libcxx/utils/libcxx/test/features.py b/libcxx/utils/libcxx/test/features.py
91-
index 15456171b548..ddd44a63c618 100644
91+
index 735eb5ac949d..6ca4e8acb3f4 100644
9292
--- a/libcxx/utils/libcxx/test/features.py
9393
+++ b/libcxx/utils/libcxx/test/features.py
9494
@@ -215,6 +215,21 @@ DEFAULT_FEATURES = [

patches/llvm-project/0005-libc-tests-with-picolibc-mark-two-more-large-tests.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From e3d01a7a6d51fe1f2d605a49123e72e2f493a532 Mon Sep 17 00:00:00 2001
1+
From 0961af52ac015c26829b4dae7fd6879a0b633f44 Mon Sep 17 00:00:00 2001
22
From: =?UTF-8?q?Dominik=20W=C3=B3jt?= <[email protected]>
33
Date: Wed, 22 Nov 2023 16:12:39 +0100
44
Subject: [libc++] tests with picolibc: mark two more large tests

versions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"llvm-project": {
1010
"comment": "tagType can be branch, tag or commithash",
1111
"tagType": "commithash",
12-
"tag": "1e75d086"
12+
"tag": "48deb356"
1313
},
1414
"picolibc": {
1515
"tagType": "commithash",
16-
"tag": "21d8fed7"
16+
"tag": "d492d5fa"
1717
},
1818
"newlib": {
1919
"tagType": "tag",

0 commit comments

Comments
 (0)