-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add "-M" and "-MM" command line options to dump the dependencies of t… #313
base: main
Are you sure you want to change the base?
Conversation
…he main source file
I just found that it has a bug that can print a line continuation after the last filename if noSysPath is specified and there is one filename withing SysPath in the last position. |
Thanks for this PR. I think this breaks the WASI build. The problem is that the filesystem API is not available in the WASI SDK, mostly due to limitations of the WASI API (e.g. missing cwd). So we cannot use filesystem directly. Please have a look at the tiny wrapper in src/parser/cxx/private/path.h that I use when targeting WASI. If you have nodejs and docker installed you can test the change using the commands:
|
Can it be surrounded in preprocessor macros to be available only for other targets ? |
yes of course, you can test for |
Do you mean something like this ?
|
…he main source file