[libc-commits] [libc] [libc] Fix unit test compile flags propagation. (PR #106128)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Mon Aug 26 13:21:09 PDT 2024


================
@@ -138,7 +138,7 @@ function(create_libc_unittest fq_target_name)
 
   _get_common_test_compile_options(compile_options "${LIBC_UNITTEST_C_TEST}"
                                    "${LIBC_UNITTEST_FLAGS}")
-  list(APPEND compile_options ${LIBC_UNITTEST_COMPILE_OPTIONS})
+  list(APPEND compile_options ${LIBC_UNITTEST_COMPILE_OPTIONS} -static)
----------------
jhuber6 wrote:

If this is needed for your use-case, it might be better to just provide it in a CMake cache file. We should have an option to pass in user-requested flags right?

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


More information about the libc-commits mailing list