File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ ExternalProject_Add(compiler-rt-build
84
84
-DCOMPILER_RT_BUILD_ORC=OFF
85
85
-DCOMPILER_RT_BUILD_GWP_ASAN=OFF
86
86
-DCMAKE_C_COMPILER_TARGET=wasm32-wasi
87
+ -DCMAKE_C_FLAGS=-mcpu=lime1
87
88
-DCOMPILER_RT_OS_DIR=wasi
88
89
-DCMAKE_INSTALL_PREFIX=${wasi_resource_dir}
89
90
EXCLUDE_FROM_ALL ON
@@ -151,7 +152,7 @@ function(define_wasi_libc_sub target target_suffix lto)
151
152
get_property (directory_cflags DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY COMPILE_OPTIONS)
152
153
list (APPEND directory_cflags -resource -dir ${wasi_resource_dir} )
153
154
set (extra_cflags_list
154
- "${CMAKE_C_FLAGS} ${directory_cflags} ${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UPPER} }" )
155
+ "-mcpu=lime1 ${CMAKE_C_FLAGS} ${directory_cflags} ${CMAKE_C_FLAGS_${CMAKE_BUILD_TYPE_UPPER} }" )
155
156
list (JOIN extra_cflags_list " " extra_cflags)
156
157
157
158
ExternalProject_Add(wasi-libc-${target}${target_suffix} -build
@@ -223,6 +224,7 @@ function(define_libcxx_sub target target_suffix extra_target_flags extra_libdir_
223
224
get_property (dir_compile_opts DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY COMPILE_OPTIONS)
224
225
get_property (dir_link_opts DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY LINK_OPTIONS)
225
226
set (extra_flags
227
+ -mcpu=lime1
226
228
${target_flags}
227
229
--target =${target}
228
230
${dir_compile_opts}
You can’t perform that action at this time.
0 commit comments