<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/94266>94266</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Flang] [Driver] ResourceDir changes cause lit failures on AIX
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            flang:driver,
            flang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          madanial0
      </td>
    </tr>
</table>

<pre>
    ResourceDir changes from https://github.com/llvm/llvm-project/pull/90886, change the ResourceDir from: `~/build/lib/clang/19` to `~/build/bin/..` which cause linking issues on AIX as ppc builtins are not found in `~/build/bin/../lib/aix/libclang_rt.builtins-powerpc64.a` which were previously accessible in `~/build/lib/clang/19/lib/aix/libclang_rt.builtins-powerpc64.a`. This causes issues with the following 2 lit test cases: 
```
  Flang :: Driver/ctofortran.f90
  Flang :: Driver/exec.f90
```
Does this happen for any other platforms besides AIX? Is there a functional reason behind the change for ResourceDir in flang? I saw @mjklemm comments about "have it point to where the MODULE files live." but it seems there was some functionality associated with the ResourceDir. It might seem that we may need another `ResourceDir` for flang. 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVF2r4zYQ_TXKy7DGkT9u8uCH7KaGCy2F0kLfylgex7MrS0YjJ5uX_vYiJ9kbtlvKBYO_RmfOHB0dFOGTI2pU9VFVxw0ucfShmbBHx2jzTef7a_MbiV-CoSMHMCO6EwkMwU8wxjiLKg5Kt0q3J47j0mXGT0q31p4ftw9z8J_JRKXbebFW6Xaf73a10p_uaBBHgucmCVwVB1B1_rfSbbew7RMYd0q3xqI7Kd1u96rOIfrvqzp2SrdZlv5eRjYjGFyEwLL7wu4ELLKQgHdweP0TUGCeDaTFkZ0ABgLnIwx-cT2w-0_0Bx3kr7fnlddfIWYPrA-zv1CYTV1m-EbmQoFgDnRmv4i9AhpDItxZ-kG3f0387q4Z_D6y3CSQx-wXjuMq-uCt9ZekigbLESJJBINCssqfH1V-UHV-v9ZXgDa1hLTtxQGOgc8UEsnoBx9iQJcN-_-ppa9k3qq-a3D0JBAT6RHnmRwMPgC6K_g4UoDZYhx8mAQ6Eu5J0jaqooXXtCqJizAszkT2Di0EQvEOOhrZ9evMd88l1GfPsYNh1TlBgeAFVJlPn79YmiYwfprIRQHs_BJBaT3imYAjzJ5dTC68rL1Tg19-Pf7x808wsCUBy2fKlNbQLTHVC9H0IHpBAfETPfHleAUU8YYxUv-2UU9MM3iNMPFpvIFBHDHChWDCKziiHtDdlFJ1_rQsOTDNvA6ZwaZvin5f7HFDzfZl-1IW-22db8amqnVPWLxgvSt02RWVRo1FZbpqZ_ra0IYbnesyr_Niu9N1nmf7XVXoclvsX8oh14ZUmdOEbLN0-DMfTpvVds2-1HW9sdiRlTVwtL4rfujvztBKf_r2WesUSaFZM6RbTqLK3LJEeQOOHO0aXqvPVHUEVX2826w6wo-C6xEGEQZku4RvUbBZgm3enWi3E5UybZ3u3Oh_AgAA__9CL7-Y">