File tree 2 files changed +15
-7
lines changed
src/trusted/service_runtime
2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ cmake_minimum_required(VERSION 3.28)
2
2
3
3
project (native_client C CXX ASM)
4
4
5
- if (WIN32 AND NOT MINGW)
5
+ if (WIN32 )
6
+ if (NOT MSVC AND NOT CMAKE_ASM_MASM_COMPILER)
7
+ set (CMAKE_ASM_MASM_COMPILER "jwasm" )
8
+ endif ()
9
+
6
10
enable_language (ASM_MASM)
7
11
endif ()
8
12
@@ -11,6 +15,14 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
11
15
include (DaemonPlatform/Platform)
12
16
include (NaClFlags)
13
17
18
+ if (WIN32 AND NOT MSVC )
19
+ if (ARCH STREQUAL "i686" )
20
+ list (APPEND CMAKE_ASM_MASM_FLAGS "-coff" )
21
+ elseif (ARCH STREQUAL "amd64" )
22
+ list (APPEND CMAKE_ASM_MASM_FLAGS "-win64" )
23
+ endif ()
24
+ endif ()
25
+
14
26
if (NOT PYTHON)
15
27
set (PYTHON "python3" )
16
28
endif ()
Original file line number Diff line number Diff line change @@ -103,12 +103,8 @@ elseif (ARCH STREQUAL "amd64")
103
103
# This use of win64_asm_env causes an invocation of MSVC, even if sel_ldr
104
104
# would not otherwise be actually built. So don't include it if we aren't
105
105
# actually building sel_ldr
106
- if (MSVC )
107
- add_library (nacl_switch_unwind_win OBJECT "arch/x86_64/nacl_switch_unwind_win.asm" )
108
- list (APPEND LDR_LIBS nacl_switch_unwind_win)
109
- else ()
110
- message (WARNING "Cannot build nacl_switch_unwind_win without MSVC ml" )
111
- endif ()
106
+ add_library (nacl_switch_unwind_win OBJECT "arch/x86_64/nacl_switch_unwind_win.asm" )
107
+ list (APPEND LDR_LIBS nacl_switch_unwind_win)
112
108
endif ()
113
109
else ()
114
110
list (APPEND LDR_INPUTS "arch/x86_64/sel_addrspace_posix_x86_64.c" )
You can’t perform that action at this time.
0 commit comments