Skip to content

Commit 37f0e62

Browse files
committed
win32: use posix sel_segments.c instead of win32 one on i686 MinGW to avoid MSVC asm code
1 parent f29beb4 commit 37f0e62

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/trusted/service_runtime/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,13 @@ if (WIN32)
148148
"win/nacl_ldt.c"
149149
"win/nacl_thread_nice.c"
150150
"win/sel_memory.c"
151-
"win/sel_segments.c"
152151
)
152+
153+
if (MSVC)
154+
list(APPEND LDR_INPUTS "win/sel_segments.c")
155+
else()
156+
list(APPEND LDR_INPUTS "posix/x86/sel_segments.c")
157+
endif()
153158
elseif (APPLE)
154159
# Rely on the c preprocessor to discover where the mach interface definitions
155160
# are located.

0 commit comments

Comments
 (0)