Skip to main content

resolve_requested_platforms

Function resolve_requested_platforms 

Source
pub fn resolve_requested_platforms(
    all: bool,
    platforms: &[NativePlatform],
) -> Result<Vec<NativePlatform>, EuvError>
Expand description

Resolves the requested platforms from the command line.

--all selects every platform the host can build, and --platforms selects an explicit list. The two are mutually exclusive, and neither means the ordinary web-only build.

§Arguments

  • bool - Whether --all was given.
  • &[NativePlatform] - The platforms given by --platforms.

§Returns

  • Result<Vec<NativePlatform>, EuvError> - The requested platforms.