Skip to content

Support configuring the default build.cmd/.sh parameters using an environment variable #104033

Open
@eiriktsarpalis

Description

@eiriktsarpalis

When building this repo with an -arch parameter unspecified, the default value will be resolved from the architecture of the currently running process:

[ValidateSet("x86","x64","arm","arm64","wasm")][string[]][Alias('a')]$arch = @([System.Runtime.InteropServices.RuntimeInformation]::ProcessArchitecture.ToString().ToLowerInvariant()),

I use bash on Windows ARM which for the moment doesn't have a native arm64 build. For this reason, I always need to explicitly specify and -arch arm64 parameter to build the runtime using the native architecture. It would be really nice if we could configure the default build architecture using a dedicated environment variable.

EDIT See #104033 (comment) for a workaround.

cc @ViktorHofer

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions