Skip to content

Commit c16e222

Browse files
committed
Set language explicitly for .asm files, because otherwise macOS fails
1 parent 69c28a8 commit c16e222

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,13 @@ if(BOOST_CONTEXT_IMPLEMENTATION STREQUAL "fcontext")
125125

126126
set(IMPL_SOURCES ${ASM_SOURCES})
127127

128-
if(BOOST_CONTEXT_ASSEMBLER STREQUAL masm AND BOOST_CONTEXT_ARCHITECTURE STREQUAL i386)
129-
set_source_files_properties(${ASM_SOURCES} PROPERTIES COMPILE_FLAGS "/safeseh")
128+
if(BOOST_CONTEXT_ASSEMBLER STREQUAL masm)
129+
set_source_files_properties(${ASM_SOURCES} PROPERTIES LANGUAGE "ASM_MASM")
130+
if(BOOST_CONTEXT_ARCHITECTURE STREQUAL i386)
131+
set_source_files_properties(${ASM_SOURCES} PROPERTIES COMPILE_FLAGS "/safeseh")
132+
endif()
133+
elseif(BOOST_CONTEXT_ASSEMBLER STREQUAL gas)
134+
set_source_files_properties(${ASM_SOURCES} PROPERTIES LANGUAGE "ASM-ATT")
130135
endif()
131136

132137
else()

0 commit comments

Comments
 (0)