File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -445,6 +445,19 @@ if(EMSCRIPTEN)
445
445
xeus_cpp_set_kernel_options (xcpp )
446
446
xeus_wasm_compile_options (xcpp )
447
447
xeus_wasm_link_options (xcpp "web,worker" )
448
+ if (SYSROOT_PATH MATCHES "@" )
449
+ execute_process (
450
+ COMMAND ln -s ${SYSROOT_PATH}
451
+ )
452
+ set (SYSROOT_PATH_ORIGINAL ${SYSROOT_PATH} )
453
+ set (SYSROOT_PATH "./sysroot/" )
454
+ endif ()
455
+ if (XEUS_CPP_RESOURCE_DIR MATCHES "@" )
456
+ execute_process (
457
+ COMMAND ln -s ${XEUS_CPP_RESOURCE_DIR}
458
+ )
459
+ set (XEUS_CPP_RESOURCE_DIR "./${CPPINTEROP_LLVM_VERSION_MAJOR} " )
460
+ endif ()
448
461
target_link_options (xcpp
449
462
PUBLIC "SHELL: -s USE_SDL=2"
450
463
PUBLIC "SHELL: --preload-file ${SYSROOT_PATH} /include@/include"
@@ -459,6 +472,11 @@ endif()
459
472
460
473
if (XEUS_CPP_BUILD_TESTS )
461
474
add_subdirectory (test )
475
+ if (SYSROOT_PATH_ORIGINAL MATCHES "@" )
476
+ execute_process (
477
+ COMMAND ln -s ${SYSROOT_PATH_ORIGINAL} "${CMAKE_CURRENT_BINARY_DIR} /test/"
478
+ )
479
+ endif ()
462
480
endif ()
463
481
464
482
# Installation
You can’t perform that action at this time.
0 commit comments