2
0
mirror of https://github.com/boostorg/context.git synced 2026-01-19 04:02:17 +00:00

[cmake] don't apply assembler options to armasm

MSVC armasm doesn't support /nologo, /quiet etc. so let's just not apply
any options period.

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter
2025-09-08 12:39:15 -04:00
parent e9a7b968ec
commit 71153912f0

View File

@@ -190,7 +190,8 @@ if(BOOST_CONTEXT_IMPLEMENTATION STREQUAL "fcontext")
set_property(SOURCE ${ASM_SOURCES} APPEND PROPERTY COMPILE_OPTIONS "/safeseh")
endif()
else() # masm
# armasm doesn't support most of these options
elseif(NOT BOOST_CONTEXT_ASSEMBLER STREQUAL armasm) # masm
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set_property(SOURCE ${ASM_SOURCES} APPEND PROPERTY COMPILE_OPTIONS "-x" "assembler-with-cpp")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")