Skip to content

[build] masm: clang-cl fails to compile #313

@crueter

Description

@crueter

This error is repeated for each asm file:

FAILED: _deps/boost-build/libs/context/CMakeFiles/boost_context.dir/src/asm/jump_x86_64_ms_pe_masm.asm.obj 
Microsoft (R) Macro Assembler (x64) Version 14.44.35215.0
Copyright (C) Microsoft Corporation.  All rights reserved.

MASM : fatal error A1013:invalid numerical command-line argument : /W

PR #294 claimed to fix this, but it didn't seem to do anything, neither did adding a NOT MSVC guard to that clang guard.

For reference, the command being run (ignoring -I stuff):

C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\ml64.exe
	-DARCHITECTURE_x86_64=1
	-DBOOST_CONTEXT_EXPORT=""
	-DBOOST_CONTEXT_NO_LIB=""
	-DBOOST_CONTEXT_SOURCE=""
	-DBOOST_CONTEXT_STATIC_LINK=""
	-DYUZU_ROOM
	-Wno-unused-command-line-argument
	-Wno-unsafe-buffer-usage
	-Wno-unused-value
	-Wno-extra-semi-stmt
	-Wno-sign-conversion
	-Wno-reserved-identifier
	-Wno-deprecated-declarations
	/nologo
	-c
	-Fo
	_deps/boost-build/libs/context/CMakeFiles/boost_context.dir/src/asm/make_x86_64_ms_pe_masm.asm.obj
	C:/Users/Administrator/code/eden/.cache/cpm/boost/1.89.0/libs/context/src/asm/make_x86_64_ms_pe_masm.asm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions