Returns the configured compiler target for this `Config`.
(&self)
| 2473 | |
| 2474 | /// Returns the configured compiler target for this `Config`. |
| 2475 | pub(crate) fn compiler_target(&self) -> target_lexicon::Triple { |
| 2476 | // If a target is explicitly configured, always use that. |
| 2477 | if let Some(target) = self.target.clone() { |
| 2478 | return target; |
| 2479 | } |
| 2480 | |
| 2481 | // If the `build.rs` script determined that this platform uses pulley by |
| 2482 | // default, then use Pulley. |
| 2483 | if cfg!(default_target_pulley) { |
| 2484 | return target_lexicon::Triple::pulley_host(); |
| 2485 | } |
| 2486 | |
| 2487 | // And at this point the target is for sure the host. |
| 2488 | target_lexicon::Triple::host() |
| 2489 | } |
| 2490 | |
| 2491 | /// Returns `true` if any of the `gc_heap_*` tunables have been explicitly |
| 2492 | /// configured. |
no test coverage detected