Skip to content

Clang-cl toolchain compile ASM failed #6175

@MaxwellGengYF

Description

@MaxwellGengYF

Xmake Version

2.9.8

Operating System Version and Architecture

Windows 11

Describe Bug

With --toolchain=clang-cl and compile any .asm files, have this error:

error: MASM : warning A4018:invalid command-line option : --target=x86_64-pc-windows-msvc

Expected Behavior

Seems like the argument "--target=x86_64-pc-windows-msvc" should not be added to ml64.exe

Project Configuration

xmake f --toolchain=clang-cl

add_files("*.asm)

Additional Information and Error Logs

PS D:\angle_script> xmake -v
[ 6%]: compiling.relesae angelscript\source\as_callfunc_x64_msvc_asm.asm
"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.43.34808\bin\HostX64\x64\ml64.exe" -c -nologo --target=x86_64-pc-windows-msvc -w -Fobuild.objs\anglescript_assembly\windows\x64\relesae\angelscript\source\as_callfunc_x64_msvc_asm.asm.obj angelscript\source\as_callfunc_x64_msvc_asm.asm
error: MASM : warning A4018:invalid command-line option : --target=x86_64-pc-windows-msvc
Assembling: angelscript\source\as_callfunc_x64_msvc_asm.asm

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions