Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
juj opened this issue Aug 10, 2017 · 2 comments
Closed
Labels

Comments

@juj
Copy link
Collaborator

juj commented Aug 10, 2017

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?

@juj
Copy link
Collaborator Author

juj commented Aug 10, 2017

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

@stale
Copy link

stale bot commented Aug 30, 2019

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.

@stale stale bot added the wontfix label Aug 30, 2019
@stale stale bot closed this as completed Sep 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant