<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=http://email.email.llvm.org/c/eJytVN1vmzAQ_2vIyykI7MDaBx7apJW2dR_apu1xMvgC7oyNbNOW_fU7Q9Il095aiTg2Z_8-7g7XVk7V3tkeuhAGn_CrhN3S06rQjXXa2J4WWj8c_9aDs_fYBFoq70f0NCnYBS-TbJdkV8v4QxlpHz3k-fn66-495FmapYwVjKfZEv2gGme93QdI2MWXhF3ClkDpd00PfBqC6tVvZVrY2n5QGh18R-eVNZBfpjxPeXaRX8DeOngqNwvk1g6TU203Q24j5F-SrXWDdSIQQApwpTXMOz049OgeUKanVupRaQnr3d3d9w8_bz5eXd_d_Pz85dO7m-23rwnfNVqYNuHXzUHa2gVaaS1pHKzWEwQ3ml8w-mig0aegyngK9mgCvgLDIxUM7kcfYEGfz62PjB4DzASEfPuWGOIQ0a3EdcKKIaW67p14hKX8lExhptCR6oRtYRwgWBjjVHjQlrwYGyhjgxYNLrS9kAgHlFfN3b_OzvJ2tHnQTYp9lEo65Ng864E9EfjTupKNkcoND8IpUWsEcuwnH7AnPonLpqbD5hfxPcPYMQxjoF7Tks7SEa1Ilt1Dek5EeYo6OnQY8wjYD2F6Tg6_hVMpoRPhfEek7CdohMcIdTAjoZ7OzVOu1lrFFHVoaLvWyyajzL1YwGN4br2nJ8AnbMYwu034lpDQBUjpLRjRx3c3p7KouCe8FKdRosYQ4cjaclIYkkHNNVPCLCbG5lArlDm0n5vmD5RM1UICmpYS161kxeUlvxQrMYbOuqpH6qx5EF6uRqerF11KZb7qqjcZ35SlaITgLGclYllnb7Dh-4zxotzUKy1q1L5KCrpumEFKfoSgeVLsVi9XoCqWsTxnjDO-yeONVQhEwYt9IctCFCzZZNgLpdOIk1rXrlw1Q9Zj6ykYW8z_DQrvVWsQZ8GkMKigsfp_Wxy_gqW5jj26mhVWs7w_mwb7jA>52861</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
instrumented lld-link produce empty .profraw
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
meongmeongasd
</td>
</tr>
</table>
<pre>
from https://github.com/llvm/llvm-project/issues/52836
Windows 11
Windows SDK 10.0.22523.0
Microsoft (R) C/C++ Optimizing Compiler Version 19.31.30818 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
build -DLLVM_ENABLE_PROJECTS=clang;compiler-rt;lld;polly trunk using cl
build instrumented -DLLVM_ENABLE_PROJECTS=clang;compiler-rt;lld;polly trunk with just build clang-cl
set LLVM_PROFILE_FILE=code-%p.profraw //or anything, up to u, as long not replace just made profraw
build -DLLVM_ENABLE_PROJECTS=clang;compiler-rt;lld;polly trunk with just build instrumented clang-cl //this to produce profraw files
as user variable or system wide
check in profraw output folder or list of .profraw files, is there any empty profraw?
that empty profraw in my case, produced by instrumented lld-link when called by ninja
linking cxx executable <insert .exe name >
reproduced by me by deleting the .exe and let ninja link the exe again
sry for my bad english
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJytVF9P2zAQ_zTpy6lR4zSlfcgDtCBtgzHBxB6RE18Sg2NHtgNkn37npIV22tuQUtfO2b8_dxcXRgx5ZU0Ljfedi9LziF3RU0vf9EVcmpYWSr0c_uadNU9YelpK53p0NMnYOl1Fi120OJ_GX1IL8-ogSU7X97tvkCziRcxYxtJ4MUVvZGmNM5WHiK3vIraBLYHS74IeuO28bOVvqWvYmraTCi08oHXSaEg2cZrE6WKdrKEyFt5Wywlya7rByroZIbcB8oNka2xnLPcEEAOcKwXjTgcWHdoXFPGxlaKXSsB8d339cPN4-f384vry8cfd7dfL7c_7KN2Vius6Si_KvbS59bRSStDYGaUG8LbXz9C7YKBUx6BSOwq2qD1-AsMrFQyeeudhQh_PzQ-MDj2MBIR89YUYwhDQjcB5xLIuprpWlr_CVH5KJteDb0h1xLbQd-AN9GHKHShDXrTxlLFO8RIn2pYLhD3Kp-bub2cneTvY3OsmxS5IJR2iL9_1QEUE7riuZKOncsMLt5IXCoEcu8F5bIlP4LSpbLB8Jr53GNP7rvfUa0rQWTqiJMkyFcSnRJSnoKNBiyGPgG3nh_fkpFdwLMU33J_uCJTtACV3GKD2ZgQUw6l5ytVcyZCiBjVtV2rapKV-4hN4CI-t9_YG-IZl70e3UbolJLQeYnoLmrfh3eWxLCruES_FaRSo0Ac4sjad5JpkUHONlDCKCbExVHOp9-1nh_EDJVMFF4C6psQ1M5GnYpNu-MxLrzD_t7dDKacMHRI9663K_-vKWiWzJs9wna1EUTJMMC3Osuqs2tCMi0KI5RLTmeIFKpdHGV1GTCOVJkDQPMp2M5mzBUsSxlKWLpNwG2UckadZlYlVxjMWLRfYcqnioCM2tp7ZfJRU9LWjYGgf9xHkzslaI450hM973xibt0gf3DhwJ2ajgHw08Adaq-ch">