Skip to content

relative #include "" directives are treated with respect to $EMSCRIPTEN/src #5457

Closed
@juj

Description

@juj

liba.js

#include "libb.js"

libb.js

mergeInto(LibraryManager.library, {
  printey: function() {
    Module.print('Hello!');
  }
});

Command line: emcc tests/hello_world.c --js-library liba.js -o a.html

Will fail with error

Error: ENOENT: no such file or directory, open 'C:\code\emsdk\emscripten\incoming\src\libb.js'

I wonder if it would be good idea to make #include "foo.js" be treated with respect to the current file, and #include <foo.js> with respect to $EMSCRIPTEN/src?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions