[libc-commits] [libc] [libc] Fix tests' linking flags accidentally modified by #147931. (PR #149453)

William Huynh via libc-commits libc-commits at lists.llvm.org
Fri Jul 18 01:04:26 PDT 2025


================
@@ -807,7 +811,7 @@ function(add_libc_hermetic test_name)
     set(link_options
       -nolibc
       -nostartfiles
-      -static
+      -nostdlib
       ${LIBC_LINK_OPTIONS_DEFAULT}
       ${LIBC_TEST_LINK_OPTIONS_DEFAULT}
     )
----------------
saturn691 wrote:

You can make this consistent with the `add_libc_hermetic`. They seem to be mostly copy paste functions.

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


More information about the libc-commits mailing list