[libcxx-commits] [libcxx] [libcxx] Remove clang-18 workaround in picolib build (PR #133254)

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 27 10:12:44 PDT 2025


================
@@ -226,13 +231,8 @@ function test-armv7m-picolibc() {
 
     step "Installing compiler-rt"
     ${NINJA} -vC "${BUILD_DIR}/compiler-rt" install
-
-    # Prior to clang 19, armv7m-none-eabi normalised to armv7m-none-unknown-eabi.
-    # clang 19 changed this to armv7m-unknown-none-eabi. So for as long as 18.x
-    # is supported, we have to ask clang what the triple will be.
-    NORMALISED_TARGET_TRIPLE=$(${CC-cc} --target=armv7m-none-eabi -print-target-triple)
-    # Without this step linking fails later in the build.
-    mv "${BUILD_DIR}/install/lib/${NORMALISED_TARGET_TRIPLE}"/* "${BUILD_DIR}/install/lib"
+    # Move compiler-rt libs into the same directory as all the picolib objects.
+    mv "${BUILD_DIR}/install/lib/armv7m-unknown-none-eabi"/* "${BUILD_DIR}/install/lib"
----------------
mordante wrote:

Looking at the script this looks like a portable solution. We no longer depend on the exact value of INSTALL_DIR.
```suggestion
    mv "${INSTALL_DIR}/lib/armv7m-unknown-none-eabi"/* "${INSTALL_DIR}/lib"
```

https://github.com/llvm/llvm-project/pull/133254


More information about the libcxx-commits mailing list