diff --git a/src/xinterpreter.cpp b/src/xinterpreter.cpp index f099b688..a505c752 100644 --- a/src/xinterpreter.cpp +++ b/src/xinterpreter.cpp @@ -28,6 +28,7 @@ using Args = std::vector; void* createInterpreter(const Args &ExtraArgs = {}) { Args ClangArgs = {/*"-xc++"*/"-v"}; // ? {"-Xclang", "-emit-llvm-only", "-Xclang", "-diagnostic-log-file", "-Xclang", "-", "-xc++"}; +#ifndef EMSCRIPTEN if (std::find_if(ExtraArgs.begin(), ExtraArgs.end(), [](const std::string& s) { return s == "-resource-dir";}) == ExtraArgs.end()) { std::string resource_dir = Cpp::DetectResourceDir(); @@ -42,6 +43,7 @@ void* createInterpreter(const Args &ExtraArgs = {}) { ClangArgs.push_back("-isystem"); ClangArgs.push_back(CxxInclude.c_str()); } +#endif ClangArgs.insert(ClangArgs.end(), ExtraArgs.begin(), ExtraArgs.end()); // FIXME: We should process the kernel input options and conditionally pass // the gpu args here. @@ -357,7 +359,9 @@ __get_cxx_version () void interpreter::init_includes() { +#ifndef EMSCRIPTEN Cpp::AddIncludePath((xeus::prefix_path() + "/include/").c_str()); +#endif } void interpreter::init_preamble()