Skip to content

[Feature Request]: Support Resource Dir through CppInterOp #417

Open
@anutosh491

Description

@anutosh491

Description of new feature

Two main reasons why this would be helpful is that

  1. Xeus-cpp's non-wasm based kernels can make use of it through kernel.json
  "argv": [
      "/Users/anutosh491/micromamba/envs/xeus-cpp/bin/xcpp",
      "-f",
      "{connection_file}",
      "-resource-dir", "/Users/anutosh491/micromamba/envs/xeus-cpp/lib/clang/19",
      "-I", "/Users/anutosh491/micromamba/envs/xeus-cpp/include",
      "-std=c++20"
  ]

Currently we do provide a location "/Users/anutosh491/micromamba/envs/xeus-cpp/lib/clang/19" but this is just a placeholder right now and such a location doesn't exist during the setup.

  1. Xeus-cpp's wasm based kernel can make use of it through emscripten's preloading feature (--preload-file or --embed-file

Once we have a resource dir through cppinterop, we just move these files to dedicated location that also has contains emscripten's sysroot and then we preload all of these files together.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions