<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/126320>126320</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[libc] libc_execv_test_normal_exit and libc_execv_test_signal_exit never set compiler+linker flags
</td>
</tr>
<tr>
<th>Labels</th>
<td>
cmake,
libc
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nickdesaulniers
</td>
</tr>
</table>
<pre>
IIUC, those two ninja targets are using add_executable/set_target_properties in libc/test/integration/src/unistd/CMakeLists.txt as part of unistd-integration-tests. execv_test.cpp and execve_test.cpp executes these binaries via corresponding execv/execve syscall.
Because they're not using existing test harnesess, it appears they don't set the compiler/linker flags correctly. This results in linkage failures when cross compiling.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkksGOuzgMxp8mXKwiGmDaHjjMdIQ00u5t91yZ4EKmaYJi02nffhXo7Iz0P0HsfI7984fMdvBEjarfVP2e4SxjiI235tIT4-y8pchZF_pH8_Hx71HpI8gYmEC-AnjrPxEE40DCgJFgZusHwL4_0Z3MLNg5UrplktN67TTFMFEUSwzWg7OdUboVYlG6tV5oiCg2-CSKKTV7y9Ir3R7_xgv9ZVk4l7sAMkwYBcIZ1iubX-pNKsg5QOridkqn3EwToO_XEP3E1kaJQUZigs56jKm7m0UwIUbiKfg-jbUolW7XCsAPNuhcropXVby-kcE5cRnpofQuEvggTx50tyzpJz0KI0ZPTMwJphXAaSKMy_sP6NPoOwEmSQEw4TpZR1Hp1ll_oQhnhwOvnRlxjxzgn9EyROLZyROqv-BAcEbr5kgMXyN5MDEwP-tZP-RZ35T9oTxgRs12V-4PL_taV9nYFD2WuxLrwuC56rCu6vpMfbHrtrtSv2x1Zhtd6LrQxU7ral9VeWe2ZYmdOWC5L4tDpaqCrmhd7tztmoc4ZJZ5pmarX0pdZA47crxYTmtzxQsprZU-Kq1XP-hkxdgk9aabB1ZV4ZbF_19PrLjFtIugfl-MdPrZ9smHeEV3onsC7Ps_8sn233lPN4oL8R_ab79pZ3N0zSgysSpflW6Vbgcr49zlJlzTZtzt-7OZYvgks7g5zcxKt8-xb43-LwAA__-ZyTHA">