Skip to content

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

Closed

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?

Activity

  1. juj commented on Aug 10, 2017

    @juj
    CollaboratorAuthor

    (or just even not adding angle brackets support, I think the relative to current file handling should be enough for all current use cases)

  2. stale commented on Aug 30, 2019

    @stale

    This issue has been automatically marked as stale because there has been no activity in the past 2 years. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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