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()
432432
433433if (EMSCRIPTEN)
434434 # 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 ()
435438 execute_process (
436- COMMAND embuilder build sdl2
439+ COMMAND embuilder${embuilder_suffix} build sdl2
437440 RESULT_VARIABLE SDL2_RESULT
438441 )
439442 if (NOT SDL2_RESULT EQUAL 0)
@@ -448,6 +451,8 @@ if(EMSCRIPTEN)
448451 xeus_wasm_link_options(xcpp "web,worker" )
449452 string (REPLACE "@" "@@" ESCAPED_SYSROOT_PATH "${SYSROOT_PATH} " )
450453 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} " )
451456 target_link_options (xcpp
452457 PUBLIC "SHELL: -s USE_SDL=2"
453458 PUBLIC "SHELL: --preload-file ${ESCAPED_SYSROOT_PATH} /include@/include"
You can’t perform that action at this time.
0 commit comments