Skip to content

Commit

Permalink
Remove support for wasm build
Browse files Browse the repository at this point in the history
Remove support for wasm build

Remove support for wasm build
  • Loading branch information
tharun571 committed Sep 9, 2024
1 parent 4a8bc5b commit b24d04a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ macro(xeus_cpp_create_target target_name linkage output_name)
endif ()

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

Expand All @@ -343,9 +343,11 @@ macro(xeus_cpp_create_target target_name linkage output_name)
if (MSVC)
target_compile_options(${target_name} PRIVATE "/MD$<$<CONFIG:Debug>:d>")
endif()
else()
elseif (UNIX)
# Curl initialised specifically for xassist
target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse curl)
else ()
target_link_libraries(${target_name} PUBLIC ${XEUS_CPP_XEUS_TARGET} clangCppInterOp pugixml argparse::argparse)
endif()

if (WIN32 OR CYGWIN)
Expand Down
2 changes: 2 additions & 0 deletions src/xinterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,8 @@ __get_cxx_version ()
// preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("file", writefile());
// preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("timeit", timeit(&m_interpreter));
// preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("python", pythonexec());
#ifndef EMSCRIPTEN
preamble_manager["magics"].get_cast<xmagics_manager>().register_magic("xassist", xassist());
#endif
}
}

0 comments on commit b24d04a

Please sign in to comment.