<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/75638>75638</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Driver][Darwin] Move the remaining bits for header path handling over to the Driver.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
platform:macos
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
brad0
</td>
</tr>
</table>
<pre>
The remaining bits for the header path handling need to be moved over to the Driver within AddClangSystemIncludeArgs() as has been done for other OS's to date.
clang/lib/Lex/InitHeaderSearch.cpp
https://github.com/llvm/llvm-project/blob/7113c80289d62de95bca818109324601a51fefd8/clang/lib/Lex/InitHeaderSearch.cpp#L343
```
// NOTE: some additional header search logic is handled in the driver for
// Darwin.
if (triple.isOSDarwin()) {
if (HSOpts.UseStandardSystemIncludes) {
// Add the default framework include paths on Darwin.
if (triple.isDriverKit()) {
AddPath("/System/DriverKit/System/Library/Frameworks", System, true);
} else {
AddPath("/System/Library/Frameworks", System, true);
AddPath("/Library/Frameworks", System, true);
}
}
return;
}
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVNGOnTYQ_RrzMioCGy7wwMPN3qJE3XYr3fQDDDOAW2Mj2-x2_74Cwu5NspGalRBge-acM5rxkd6rwRDVLP_A8ksklzBaV7dOYhK1Fp_rzyOBo0kqo8wArQoeeusgjAQjSSQHswwjjNKgXiMMEUKw0BJM9pEQ7CO5dWPNuDi1rp5UGJWBM-Kdlma4PvtA0yfT6QXp7AbPeMl4BdLDKD20RAbQGtqIbRjJwcOV8cKvsCgDxSy5sOS8v7sVkvFGq5bx5p7-Zbz5ZFT4uKm9knTdGHfzfJszhjB7Js6MN4w3gwrj0sadnVYY_Xh8fpmd_Zu6wHjTaruiF2kqujLhZYUnjlTlbSfLtEyTSvDslKQyT3vqsWS8-d-yuLgXmbhVx07Jl2dbwq4S_nj4_CsTZ_B2IpCIKihrpD7a4jdI0HZQHSi_d4gQlNlagXsreuu-oB6wF-melImPXdUD42VwatYUK_9w3c_3Fq1dYsWHI_aI_nh9mIOP__J0DdKgdPhVi_13aS_kZ8RdHfVy0QF6Jyd6su4fUHvuNm0erPlW5yv7i9Z92n5T4S2xZ8Q_ZRi3I854sytkvLnJet28V62T7pnxpjkU-S3vDo6YOwhuoZVHHBysuABpT98WCz9mfx_RD1DfrfoV9quFo7A4c0P7cvoyohHWAitRyYjqtEj46ZSLRERjnWPG2xzTHosTdVnZVRVV1PJMpFUnMIlUzRMuUp7maSnyRMRllqSiKousxAKzvmJZsvqQjte7GFs3RMr7heoiP4ky0rIl7Tcf43zWMvTWTUycJ9nZrej8Erl6u8btMniWJVr54F_Bggp688F9AFh-Wf_3Yc8v8Lt9pG003zDDN43we9-Lo8Xp-qe9ZqvSr26zFvpfAAAA__8xYr4F">