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

    <tr>
        <th>Summary</th>
        <td>
            [BOLT] Support building runtime library if map_files is not readable
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            BOLT
      </td>
    </tr>

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

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

<pre>
    06b8057cc2 introduced a check that prevents runtime library from being built if map_files is not available at configuration time.
However, BOLT has an option `-instrumentation-binpath <path-to-instrumented-binary>` that can be used if map_files is not available.

The proper solution is perhaps to emit a warning that map_files is not readable and suggest using `-instrumentation-binpath` option. 

CC @maksfb @rafaelauler 
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8Us1u3DwMfBr5Qqwhy3_xwYdk8y2-Q4EemntBybStRpYE_Wywb1_Ym6JBW-RiGhA5nBkOxqgXSzSy9om1zwXmtLowImbvroV0023knXzgba-UAG1TcFNWNAGCWkm9QloxgQ90JZsihGyT3giMlgHDDebgNpCk7QIya5NAz7Ch_z5rQxF0BOsS4BW1QWkIMIFydtZLDpi0s7CDlYw_M_74v3ujKwUmzvD09csLrBgBLTh_NLKOn7SNKeSNbDqGT1Jbj2kFVp_3ekruQwtN-zuGG6v_Yx2_61BoQRLkSNPnTN853b8vK4EPzlOA6Ew--OgInsKKPkJyQJtOgPCGwe5WHLv-Ag-E090FO0HMy0IxQY77wCfqdu53D0r4SOp8BtbwDV_jLPe_gDOSwWwoQDGN9TTUAxY0Vj1vORdN2xTrOAs1yIeuI6G4oLoWNVHF22qgtp2GoSv0KLhoeFVV1dD0dVNOddfKue-aqlcolGINpw21KY25bqULS6FjzDT2_YMQhUFJJh5ZE2K_IhNiT10Y9_aTzEtkDTc6pvgbIOlkjnweA-0zfMveu5CORE27PX-m7l-n--VukYMZ15R8ZPUjExcmLotOa5alchsTl33tezn54H6QSkxcDhGRicuh42cAAAD__7m8FDI">