| <html devsite> |
| <head> |
| <meta name="project_path" value="/_project.yaml"> |
| <meta name="book_path" value="/versions/6.4.0/_book.yaml"> |
| </head> |
| <body> |
| |
| <h1 class="page-title" id="modules.apple">apple</h1> |
| |
| <!-- {% raw %} --> |
| |
| A configuration fragment for Apple platforms. |
| |
| <h2>Members</h2> |
| <ul> |
| <li> |
| <a href="#bitcode_mode">bitcode_mode</a> |
| </li> |
| <li> |
| <a href="#multi_arch_platform">multi_arch_platform</a> |
| </li> |
| <li> |
| <a href="#single_arch_cpu">single_arch_cpu</a> |
| </li> |
| <li> |
| <a href="#single_arch_platform">single_arch_platform</a> |
| </li> |
| </ul> |
| |
| <h2 id="bitcode_mode">bitcode_mode</h2> |
| <p><pre class="rule-signature"><a class="anchor" href="apple_bitcode_mode.html">apple_bitcode_mode</a> apple.bitcode_mode</pre></p> |
| |
| Returns the Bitcode mode to use for compilation steps.<p>This field is only valid for device builds; for simulator builds, it always returns <code>'none'</code>. |
| |
| |
| <h2 id="multi_arch_platform">multi_arch_platform</h2> |
| <p><pre class="rule-signature"><a class="anchor" href="apple_platform.html">apple_platform</a> apple.multi_arch_platform(platform_type)</pre></p> |
| |
| The platform of the current configuration for the given platform type. This should only be invoked in a context where multiple architectures may be supported; consider <a href='#single_arch_platform'>single_arch_platform</a> for other cases. |
| |
| <!-- hide-from-toc is a class used by DevSite for the public Bazel site |
| (https://developers.google.com/devsite/reference/styles/headings#hide_headings_from_the_toc) --> |
| <h3 class="hide-from-toc">Parameters</h3> |
| <table class="table table-bordered table-condensed table-params"> |
| <colgroup> |
| <col class="col-param"> |
| <col class="param-description"> |
| </colgroup> |
| <thead> |
| <tr> |
| <th>Parameter</th> |
| <th>Description</th> |
| </tr> |
| </thead> |
| <tbody> |
| <tr> |
| <td id="multi_arch_platform.platform_type"> |
| <code>platform_type</code> |
| </td> |
| <td> |
| required<br/> |
| The apple platform type. |
| </td> |
| </tr> |
| </tbody> |
| </table> |
| |
| <h2 id="single_arch_cpu">single_arch_cpu</h2> |
| <p><pre class="rule-signature"><a class="anchor" href="string.html">string</a> apple.single_arch_cpu</pre></p> |
| |
| The single "effective" architecture for this configuration (e.g., <code>i386</code> or <code>arm64</code>) in the context of rule logic that is only concerned with a single architecture (such as <code>objc_library</code>, which registers single-architecture compile actions). |
| |
| |
| <h2 id="single_arch_platform">single_arch_platform</h2> |
| <p><pre class="rule-signature"><a class="anchor" href="apple_platform.html">apple_platform</a> apple.single_arch_platform</pre></p> |
| |
| The platform of the current configuration. This should only be invoked in a context where only a single architecture may be supported; consider <a href='#multi_arch_platform'>multi_arch_platform</a> for other cases. |
| |
| |
| |
| </body> |
| </html> |
| |
| <!-- {% endraw %} --> |