[Windows] Update the Windows build layout to include the target architecture #129805
Labels
a: desktop
Running on desktop
P3
Issues that are less important to the Flutter project
platform-windows
Building on or for Windows specifically
team-windows
Owned by the Windows platform team
tool
Affects the "flutter" command-line tool. See also t: labels.
Background
See: https://flutter.dev/go/windows-arm64
Currently, Windows has the following build layout:
build/windows/runner/Release/my_app.exe
This assumes an AMD64 target architecture.
Solution
Windows should be updated to have separate build directories for each target architectures. For example:
build/windows/x64/runner/Release/my_app.exe
Work
FLUTTER_TARGET_PLATFORM
CMake variable. IfFLUTTER_TARGET_PLATFORM
is not set, its value should fallback to x64 for backwards compatibility.-A x64
FLUTTER_TARGET_PLATFORM
CMake variable tox64
ephemeral
directorybuild/windows/
directory if it contains builds that used the old layoutThe text was updated successfully, but these errors were encountered: