(&mut self, enable: bool)
| 360 | /// `"cranelift"` or `"winch"` features across the whole workspace. |
| 361 | #[cfg(any(feature = "cranelift", feature = "winch"))] |
| 362 | pub fn enable_compiler(&mut self, enable: bool) -> &mut Self { |
| 363 | match (enable, &self.compiler_config) { |
| 364 | (true, Some(_)) | (false, None) => {} |
| 365 | (true, None) => { |
| 366 | self.compiler_config = Some(CompilerConfig::default()); |
| 367 | } |
| 368 | (false, Some(_)) => { |
| 369 | self.compiler_config = None; |
| 370 | } |
| 371 | } |
| 372 | self |
| 373 | } |
| 374 | |
| 375 | /// Configures the target platform of this [`Config`]. |
| 376 | /// |
no outgoing calls