Skip to content

Windows can not build x64 projects on master branch from ARM machine (Parallels) #179332

@krll-kov

Description

@krll-kov

Steps to reproduce:

Go to windows\flutter\CMakeLists.txt and replace

if (NOT DEFINED FLUTTER_TARGET_PLATFORM)
  set(FLUTTER_TARGET_PLATFORM "windows-x64")
endif()

With

  set(FLUTTER_TARGET_PLATFORM "windows-x64")

Execute

flutter build windows

The following error will occur

PS C:\Users\swiftsoft\IdeaProjects\untitled> flutter build windows
C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): error MSB8066: Custom build for 'C:\Users\swiftsoft\IdeaProjects\untitled\build\windows\arm64\CMakeFiles\ef4d867e2133f84f4c9f11a29a896316\flutter_windows.dll.rule;C:\Users\swiftsoft\IdeaProjects\untitled\build\windows\arm64\CMakeFiles\370df9b0f34fb846523f55aa1b4e6de0\flutter_assemble.rule' exited with code 1. [C:\Users\swiftsoft\IdeaProjects\untitled\build\windows\arm64\flutter\flutter_assemble.vcxproj]
Building Windows application...                                    10.4s
Build process failed.

Are there any new places where something has to be disabled to stop building arm version of the app?

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: buildBuilding flutter applications with the toolc: regressionIt was better in the past than it is nowplatform-windowsBuilding on or for Windows specificallyteam-windowsOwned by the Windows platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions