Skip to content

Windows arm64编译报错MASM not supported on this platform #364

Open
@Baiyuetribe

Description

@Baiyuetribe

在mac arm64上,使用如下命令可正常编译出arm64和x64;

cmake -DCMAKE_OSX_ARCHITECTURES=arm64 ..
cmake -DCMAKE_OSX_ARCHITECTURES= x86_64 ..

但是在Windows arm64设备上,编译均报错

# 编译arm64
cmake -A ARM64 ..

报错如下:

 Assembling C:\arch\auto_action\tmp\src\co\context\context_x64.asm...
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\BuildCustomizations\masm.targets(70,5): error MSB3721: 命令“echo MASM not supported on this platform [C:\arch\auto_action\tmp\bu
ild_arm64\src\co.vcxproj]
C:\arch\auto_action\tmp\src\log\StackWalker.cpp(1003,1): error C1189: #error:  "Platform not supported!" [C:\arch\auto_action\tmp\build_arm64\src\co.vcxproj]

编译x64时

cmake -A x64 ..

报错:

C:\arch\auto_action\tmp\src\co\hook_win.cc(1411,5): error C2664: “void co::detour_attach(PVOID *,PVOID,PCHAR)”: 无法将参数 3 从“const char [26]”转换为“PCHAR” [C:\arch\auto_action\tmp\build_x64\src\co.vcxproj] 
  C:\arch\auto_action\tmp\src\co\hook_win.cc(1411,5):

Activity

linked a pull request that will close this issue on Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @Baiyuetribe

      Issue actions

        Windows arm64编译报错MASM not supported on this platform · Issue #364 · idealvin/coost