File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -432,8 +432,11 @@ endif()
432
432
433
433
if (EMSCRIPTEN )
434
434
# Ensure required SDL2 ports (e.g. SDL2) are built before header preloading
435
+ if (CMAKE_C_COMPILER MATCHES ".bat" )
436
+ set (embuilder_suffix .bat )
437
+ endif ()
435
438
execute_process (
436
- COMMAND embuilder build sdl2
439
+ COMMAND embuilder${embuilder_suffix} build sdl2
437
440
RESULT_VARIABLE SDL2_RESULT
438
441
)
439
442
if (NOT SDL2_RESULT EQUAL 0 )
@@ -448,6 +451,8 @@ if(EMSCRIPTEN)
448
451
xeus_wasm_link_options (xcpp "web,worker" )
449
452
string (REPLACE "@" "@@" ESCAPED_SYSROOT_PATH "${SYSROOT_PATH} " )
450
453
string (REPLACE "@" "@@" ESCAPED_XEUS_CPP_RESOURCE_DIR "${XEUS_CPP_RESOURCE_DIR} " )
454
+ string (REPLACE "\\ " "/" ESCAPED_XEUS_CPP_RESOURCE_DIR "${ESCAPED_XEUS_CPP_RESOURCE_DIR} " )
455
+ string (REPLACE "\\ " "/" ESCAPED_SYSROOT_PATH "${ESCAPED_SYSROOT_PATH} " )
451
456
target_link_options (xcpp
452
457
PUBLIC "SHELL: -s USE_SDL=2"
453
458
PUBLIC "SHELL: --preload-file ${ESCAPED_SYSROOT_PATH} /include@/include"
You can’t perform that action at this time.
0 commit comments