File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -120,17 +120,27 @@ macro(add_assembly ASMFILE)
120
120
COMMAND ${CMAKE_C_COMPILER} /nologo /EP /I. /Iinclude /I${CMAKE_CURRENT_SOURCE_DIR} /include "${ASMFILE_FULL} "
121
121
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
122
122
OUTPUT_FILE ${ARCH_ASM_NAME} .asm
123
+ RESULT_VARIABLE retcode
123
124
)
124
125
126
+ if (NOT ${retcode} STREQUAL "0" )
127
+ message (FATAL_ERROR "Unable to assemble, exit code: '${retcode} '." )
128
+ endif ()
129
+
125
130
# Produced *.asm file could be just added to sources.
126
131
# It works in x64 mode, but for some strange reason MASM returns error code when in x86,
127
132
# (even though it didn't report any errors and correctly generated object file)
128
133
# which in turn causes MSBUILD to stop.
129
134
execute_process (
130
135
COMMAND ${ARCH_ASSEMBLER} ${ARCH_ASM_NAME} .asm
131
136
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
137
+ RESULT_VARIABLE retcode
132
138
)
133
139
140
+ if (NOT ${retcode} STREQUAL "0" )
141
+ message (FATAL_ERROR "Unable to compile assembly, exit code: '${retcode} '." )
142
+ endif ()
143
+
134
144
list (APPEND FFI_SOURCES ${CMAKE_BINARY_DIR} /${ARCH_ASM_NAME} .obj)
135
145
else ()
136
146
list (APPEND FFI_SOURCES ${ASMFILE} )
Original file line number Diff line number Diff line change 1
1
Source: libffi
2
- Version: 3.3-1
2
+ Version: 3.3-2
3
3
Homepage: https://github.com/libffi/libffi
4
4
Description: Portable, high level programming interface to various calling conventions
You can’t perform that action at this time.
0 commit comments