Skip to content

Commit b24d04a

Browse files
committed
Remove support for wasm build
Remove support for wasm build Remove support for wasm build
1 parent 4a8bc5b commit b24d04a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ macro(xeus_cpp_create_target target_name linkage output_name)
318318
endif ()
319319

320320
#This is a workaround for the issue with the libcurl target on Windows specifically for xassist
321-
if(WIN32)
321+
if (WIN32)
322322
# Set the MSVC runtime library
323323
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
324324

@@ -343,9 +343,11 @@ macro(xeus_cpp_create_target target_name linkage output_name)
343343
if (MSVC)
344344
target_compile_options(${target_name} PRIVATE "/MD$<$<CONFIG:Debug>:d>")
345345
endif()
346-
else()
346+
elseif (UNIX)
347347
# Curl initialised specifically for xassist
348348
target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse curl)
349+
else ()
350+
target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse)
349351
endif()
350352

351353
if (WIN32 OR CYGWIN)

src/xinterpreter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,8 @@ __get_cxx_version ()
407407
// preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("file", writefile());
408408
// preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("timeit", timeit(&m_interpreter));
409409
// preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("python", pythonexec());
410+
#ifndef EMSCRIPTEN
410411
preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("xassist", xassist());
412+
#endif
411413
}
412414
}

0 commit comments

Comments
 (0)