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 @@ -433,7 +433,7 @@ endif()
433
433
if (EMSCRIPTEN )
434
434
# Ensure required SDL2 ports (e.g. SDL2) are built before header preloading
435
435
execute_process (
436
- COMMAND embuilder build sdl2
436
+ COMMAND embuilder${EMCC_SUFFIX} build sdl2
437
437
RESULT_VARIABLE SDL2_RESULT
438
438
)
439
439
if (NOT SDL2_RESULT EQUAL 0 )
@@ -448,6 +448,8 @@ if(EMSCRIPTEN)
448
448
xeus_wasm_link_options (xcpp "web,worker" )
449
449
string (REPLACE "@" "@@" ESCAPED_SYSROOT_PATH "${SYSROOT_PATH} " )
450
450
string (REPLACE "@" "@@" ESCAPED_XEUS_CPP_RESOURCE_DIR "${XEUS_CPP_RESOURCE_DIR} " )
451
+ string (REPLACE "\\ " "/" ESCAPED_XEUS_CPP_RESOURCE_DIR "${ESCAPED_XEUS_CPP_RESOURCE_DIR} " )
452
+ string (REPLACE "\\ " "/" ESCAPED_SYSROOT_PATH "${ESCAPED_SYSROOT_PATH} " )
451
453
target_link_options (xcpp
452
454
PUBLIC "SHELL: -s USE_SDL=2"
453
455
PUBLIC "SHELL: --preload-file ${ESCAPED_SYSROOT_PATH} /include@/include"
You can’t perform that action at this time.
0 commit comments