-
Notifications
You must be signed in to change notification settings - Fork 3.4k
include_emscripten #4664
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
include_emscripten #4664
Conversation
The rationale here is that we don't want to pollute the include paths of user projects by any of the new include files that we add to https://github.com/kripken/emscripten/tree/master/system/include/emscripten. I'm reading through build notes from a partner and they have documented a custom hack where they rename header file in We have some awfully general names in the system include directory: bind.h, html5.h, threading.h, trace.h, val.h, vector.h, vr.h and wire.h. It would be nice to spread the practice of always including these with |
I see, makes sense. The one exception I'd suggest is to allow |
(Or move |
I suppose allowing We can't move But I think we can do a stub |
The method has more options I guess, we could also just add the parent dir and the emscripten/ dir to the include list. Anyhow, I'm not picky about the technical details, but I think it makes sense to require including to prefix |
+1 |
Oh btw, have you guys given any thought to having a more distro-like/SDK-like layout to the includes and libs? Right now we have |
…headers (apart from emscripten.h for which either form works)
f1f0fd7
to
b7ac9ed
Compare
Updated PR. Tiny changes remain, I believe this should be all good, so merging directly. |
The changes related to |
@dschuff: So far that kind of structure has not had appeal, for one because the directory under |
Use
#include <emscripten/foo.h>
instead of#include <foo.h>
when referring to any files inside the Emscripten system include directory.